SA-MP Forums Archive
IsPlayerConnected bug - 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: IsPlayerConnected bug (/showthread.php?tid=607691)



IsPlayerConnected bug - justjamie - 22.05.2016

Hello.
If i use this line
PHP код:
if(IsPlayerConnected(iPlayer)) return SendClientError(playeridPLAYER_NOT_FOUND); 
i get this error: error 035: argument type mismatch (argument 1)

What's the matter here?


Re: IsPlayerConnected bug - doreto - 22.05.2016

Firstly this is custom function and we don't know it.
Secondly, I guess you are missing either color or you're not PLAYER_NOT_FOUND defined .


Re: IsPlayerConnected bug - iKarim - 22.05.2016

Are you sure that iPlayer variable is an integer contains player id? Are you sure this function accepts integer?


Re: IsPlayerConnected bug - justjamie - 22.05.2016

Quote:
Originally Posted by PawnHunter
Посмотреть сообщение
Are you sure that iPlayer variable is an integer contains player id? Are you sure this function accepts integer?
it's not a playerid, its a Full_Name


Re: IsPlayerConnected bug - Stinged - 22.05.2016

IsPlayerConnected works with IDs, not names.


Re: IsPlayerConnected bug - WhiteGhost - 22.05.2016

Have u tried undef players and defined them?