13.09.2011, 01:55
Quote:
new gotarmour[500];
As soon as the player buys the armour. Which is at case 8, do this: "case 8:{SetPlayerArmour(playerid, 100); gotarmour[playerid] = 1;SetTimerEx("ArmourUpdate", 300000, 0, "i", playerid);}; forward ArmourUpdate(playerid); public ArmourUpdate(playerid) { if(gotarmour[playerid] == 1)gotarmour[playerid] = 0; } public OnPlayerDisconnect(playerid) { gotarmour[playerid] = 0; } |
Quote:
C:\Documents and Settings\Lucas\Desktop\Serverstuff\MyTestServerV1. 0\filterscripts\minigame.pwn(326) : error 017: undefined symbol "gotarmour" C:\Documents and Settings\Lucas\Desktop\Serverstuff\MyTestServerV1. 0\filterscripts\minigame.pwn(326) : warning 215: expression has no effect C:\Documents and Settings\Lucas\Desktop\Serverstuff\MyTestServerV1. 0\filterscripts\minigame.pwn(326) : error 001: expected token: ";", but found "]" C:\Documents and Settings\Lucas\Desktop\Serverstuff\MyTestServerV1. 0\filterscripts\minigame.pwn(326) : error 029: invalid expression, assumed zero C:\Documents and Settings\Lucas\Desktop\Serverstuff\MyTestServerV1. 0\filterscripts\minigame.pwn(326) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |