SA-MP Forums Archive
Need help on playeraward... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need help on playeraward... (/showthread.php?tid=413217)



Need help on playeraward... - Scrillex - 04.02.2013

PHP код:
public AwardWinner(Player)
{
    
GivePlayerMoney(playerid500);//here
    
return 1;

PHP код:
error 017undefined symbol "playerid" 
I just want to know when races ends it loads Award player I just want to give him 500 $.


Re: Need help on playeraward... - Pillhead2007 - 04.02.2013

public Awarwinner(playerid)
{
GivePlayerMoney(playerid, 500);//here
return 1;
}


Re: Need help on playeraward... - Scrillex - 04.02.2013

Quote:
Originally Posted by Pillhead2007
Посмотреть сообщение
public Awarwinner(playerid)
{
GivePlayerMoney(playerid, 500);//here
return 1;
}
And what you changed?


Re: Need help on playeraward... - dannyk0ed - 04.02.2013

Quote:
Originally Posted by Scrillex
Посмотреть сообщение
And what you changed?
public AwardWinner(Player)
to AwardWinner(playerid)


Re: Need help on playeraward... - Scrillex - 04.02.2013

Yeah found all k.. thank you guys for help and your time


Re: Need help on playeraward... - dannyk0ed - 04.02.2013

Quote:
Originally Posted by Scrillex
Посмотреть сообщение
pawn Код:
AwardWinner(playerid) //this line

error 025: function heading differs from prototype
Sorry, forgot to place
pawn Код:
public AwardWinner(playerid);