SA-MP Forums Archive
playerState in 0.3b? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: playerState in 0.3b? (/showthread.php?tid=171883)



playerState in 0.3b? - WillyP - 28.08.2010

i try the playerState with the 0.3b includes and i look down the list but it isnt there? has it been removed or replaced?


Re: playerState in 0.3b? - Claude - 28.08.2010

Maybe you forgot to add
pawn Код:
new playerState = GetPlayerState(playerid);



Re: playerState in 0.3b? - WillyP - 28.08.2010

pawn Код:
if (playerState == PLAYER_STATE_PASSENGER)
?


Re: playerState in 0.3b? - Claude - 28.08.2010

Quote:

i try the playerState with the 0.3b includes and i look down the list but it isnt there? has it been removed or replaced?

There never was playerState, only GetPlayerState :P


Re: playerState in 0.3b? - playbox12 - 28.08.2010

Exactly, so make it

pawn Код:
if (GetPlayerState == PLAYER_STATE_PASSENGER)



Re: playerState in 0.3b? - [XST]O_x - 28.08.2010

Quote:
Originally Posted by playbox12
Посмотреть сообщение
Exactly, so make it

pawn Код:
if (GetPlayerState == PLAYER_STATE_PASSENGER)
You mean:
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)



Re: playerState in 0.3b? - WillyP - 28.08.2010

thanks all, i really am dumb if i didnt see that D: