04.10.2011, 12:39
Hi,
I'm using sscanf2 plugin/include and I keep having this problem.I made some commands using the "u"(playerid) but when i put IsPlayerConnected(ID); at the begining of the command it always says that the player is not connected, even if it is.
Thanks
I'm using sscanf2 plugin/include and I keep having this problem.I made some commands using the "u"(playerid) but when i put IsPlayerConnected(ID); at the begining of the command it always says that the player is not connected, even if it is.
Код:
CMD:setfaction(playerid, params[]) { new ID, level; if(sscanf(params, "ud", ID, level)) return Syntax("/setfaction [playerid] [faction]"); if(!IsPlayerConnected(ID)) return Error("Player not connected"); //Here is the problem...it always says it isn't connected PlayerInfo[ID][pFaction] = level; return 1; }