IsPlayerConnected problem
#1

So I have a weird problem with (zcmd?) the IsPlayerConnected function. Here is some code:

PHP код:
CMD:givemoney(playeridparams[])
{
    new
        
targetID,
        
parameter
    
;
    if(
sscanf(params"ui"targetIDparameter)) return UsageTag(playerid"/givemoney [ID] [AMOUNT]");
    if(!
IsPlayerConnected(targetID)) return ErrorTag(playerid"The specified player is offline!");
    
GivePlayerCash(targetIDparameter);
    return 
1;

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?
Reply


Messages In This Thread
IsPlayerConnected problem - by polygxn - 20.02.2019, 21:56
Re: IsPlayerConnected problem - by DaniceMcHarley - 20.02.2019, 22:14
Re: IsPlayerConnected problem - by CherryMond - 20.02.2019, 22:17
Re: IsPlayerConnected problem - by polygxn - 20.02.2019, 22:18
Re: IsPlayerConnected problem - by Undef1ned - 20.02.2019, 22:43
Re: IsPlayerConnected problem - by polygxn - 20.02.2019, 22:53
Re: IsPlayerConnected problem - by AdamsLT - 20.02.2019, 23:11
Re: IsPlayerConnected problem - by polygxn - 20.02.2019, 23:21

Forum Jump:


Users browsing this thread: 1 Guest(s)