PlayerId problem.
#1

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
Reply
#2

someone?
Reply
#3

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

ok, but how to do that?
Reply
#5

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

I cannot do everything for you but here:

https://sampwiki.blast.hk/wiki/GetPlayerName
https://sampwiki.blast.hk/wiki/GetPlayerID
Reply
#7

ok,thanks yo tow,its work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)