17.12.2013, 20:41
Your issue is this (in the /goto command):
That is the same as (what is in your /get command):
Simple add a ! before it :
Clean code is good code.
pawn Код:
if(IsPlayerConnected(targetid))return SendClientMessage(playerid, COLOR_RED, "[ERROR]{FFFFFF} Player not connected");
pawn Код:
if(IsPlayerConnected(targetid))//Check if they are connected
{
SendClientMessage(playerid, COLOR_RED, "[ERROR]{FFFFFF}Player not connected");//if they are send this message
return 1;//end the code
}
pawn Код:
if(!IsPlayerConnected(targetid))//THIS will check if they are NOT connected, rather than are.
Clean code is good code.