IsPlayerConnected bug
#1

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

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 .
Reply
#3

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

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

IsPlayerConnected works with IDs, not names.
Reply
#6

Have u tried undef players and defined them?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)