Skip to content
#3056
Auto-translated
Gerter
first, here's how it should be:
local a = 0
it's better not to write anything outside of functions.
second, here's this line:
if prewOwner == PLAYER_NOON and newOwner == PLAYER_NAME
a neutral player is PLAYER_NONE. What is PLAYER_NAME, anyway? You need to use constant player numbers, for example, PLAYER_1.

also, in the definition of the zoloto function, you need to specify that it has the parameters prewOwner and newOwner:
function zoloto(prewOwner, newOwner)

PLAYER_NAME is any player. I want the script to work when any player captures this town.

Statistics

Welcome our newest member: artem

Users Online 3 users 1428 guests