Command /goto and command /get doesnt work.
#2

Your issue is this (in the /goto command):

pawn Код:
if(IsPlayerConnected(targetid))return SendClientMessage(playerid, COLOR_RED, "[ERROR]{FFFFFF} Player not connected");
That is the same as (what is in your /get command):
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
}
Simple add a ! before it :
pawn Код:
if(!IsPlayerConnected(targetid))//THIS will check if they are NOT connected, rather than are.

Clean code is good code.
Reply


Messages In This Thread
Command /goto and command /get doesnt work. - by SplinteX - 17.12.2013, 20:24
Re: Command /goto and command /get doesnt work. - by jakejohnsonusa - 17.12.2013, 20:41
Re: Command /goto and command /get doesnt work. - by SplinteX - 17.12.2013, 20:48

Forum Jump:


Users browsing this thread: 1 Guest(s)