SA-MP Forums Archive
PlayerId problem. - 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: PlayerId problem. (/showthread.php?tid=348453)



PlayerId problem. - jimis - 05.06.2012

I have make a timer for rob casino i have set this:
PHP код:
public RobFourDragons()
{
    
GivePlayerMoney(playerid300);
    
SendClientMessage(playerid0x33AA33AA,"You robbed 300$");

But i have the folloing errors..
PHP код:
C:\Users\Дзмзфсзт\Documents\server5\gamemodes\newtest.pwn(3892) : error 017undefined symbol "playerid"
C:\Users\Дзмзфсзт\Documents\server5\gamemodes\newtest.pwn(3893) : error 017undefined symbol "playerid" 
LOL,How to define playerid??
Please help...
thanks


Re: Problem some help plz... - jimis - 05.06.2012

someone?


Re: PlayerId problem. - Edward156 - 05.06.2012

Since "playerid" is not native in the "public", you're going to have to define it first.


Re: PlayerId problem. - jimis - 05.06.2012

ok, but how to do that?


Re: PlayerId problem. - newbienoob - 05.06.2012

pawn Код:
forward RobFourDragons(playerid);
public RobFourDragons(playerid)
{
.......
}



Re: PlayerId problem. - Edward156 - 05.06.2012

I cannot do everything for you but here:

https://sampwiki.blast.hk/wiki/GetPlayerName
https://sampwiki.blast.hk/wiki/GetPlayerID


Re: PlayerId problem. - jimis - 05.06.2012

ok,thanks yo tow,its work