[HELP] !IsPlayerConnected <--- Noob Question
#1

I get 1 ERROR:

pawn Код:
new id = strval(tmp); //<--- Here
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid,0xFF0000FF,"Invalid ID");
ERROR:
pawn Код:
undefined symbol "tmp"
Reply
#2

You haven't defined tmp, so there's no value to it, so you'll have 0 returned every single time.

Take a look at strtok on the SA-MP wiki to gain a better understanding of how it works.
Reply
#3

At the top of script:
Код:
new tmp[128];
And at where ever u doing:
Код:
new id = strval(tmp); //<--- Here
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid,0xFF0000FF,"Invalid ID");
Reply
#4

Thaks
Reply
#5

Tell me if it work
BTW contact me (PM) if you would like to be ADMIN on my brand new server

=========================
This forum requires that you wait 120 seconds between posts. Please try again in 21 seconds.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)