20.02.2019, 21:56
So I have a weird problem with (zcmd?) the IsPlayerConnected function. Here is some code:
So my problem is when I type a non-connected ID with the command it just returns the unknown command thing. The really strange thing about is that this same exact command is worked before, but since I re-wrote it its just broken. Any suggestions?
PHP код:
CMD:givemoney(playerid, params[])
{
new
targetID,
parameter
;
if(sscanf(params, "ui", targetID, parameter)) return UsageTag(playerid, "/givemoney [ID] [AMOUNT]");
if(!IsPlayerConnected(targetID)) return ErrorTag(playerid, "The specified player is offline!");
GivePlayerCash(targetID, parameter);
return 1;
}