20.12.2010, 14:13
I'm making this:
I've already added:
forward KillStreak(playerid);
But i got this:
Код:
public KillStreak(playerid) ( if((GetPlayerScore(playerid) >= 15) { SendClientMessage(playerid,COLOR_YELLOW,"You have now reached 15 score! 2000$ for you!"); GivePlayerMoney(playerid, 2000); ) if((GetPlayerScore(playerid) >= 30) { SendClientMessage(playerid,COLOR_YELLOW,"You have now reached 30 score! 4000$ for you!"); GivePlayerMoney(playerid, 4000); return 1; )
forward KillStreak(playerid);
But i got this:
Код:
C:\Documents and Settings\k\Desktop\SFWAR.pwn(2316 -- 2317) : error 029: invalid expression, assumed zero C:\Documents and Settings\k\Desktop\SFWAR.pwn(2322) : error 010: invalid function or declaration C:\Documents and Settings\k\Desktop\SFWAR.pwn(2326) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.