public KillStreak
#1

I'm making 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;
)
I've already added:

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.
Reply


Messages In This Thread
public KillStreak - by Face9000 - 20.12.2010, 14:13
Re: public KillStreak - by Seven. - 20.12.2010, 14:17
Re: public KillStreak - by Face9000 - 20.12.2010, 14:19
Re: public KillStreak - by Leeroy. - 20.12.2010, 14:21
Re: public KillStreak - by Freddi-25 - 20.12.2010, 14:53
Re: public KillStreak - by Leeroy. - 20.12.2010, 14:58
Re: public KillStreak - by The_Gangstas - 20.12.2010, 15:01
Re: public KillStreak - by Freddi-25 - 20.12.2010, 15:30
Re: public KillStreak - by Face9000 - 20.12.2010, 15:31
Re: public KillStreak - by Jochemd - 20.12.2010, 15:33

Forum Jump:


Users browsing this thread: 1 Guest(s)