sscanf error: system not initialized
#1

Hey there
I made a healing system, this one with zcmd
PHP код:

CMD
:heal(playerid, params[])
    {
        new 
targetid;
    
//    if(PlayerInfo[playerid][pAdmin]>0)
//        {
        
if(sscanf(params,"u", targetid)) return SendClientMessage(playerid, WHITE,"USAGE: /heal [PlayerID]");
           else if (
targetid == INVALID_PLAYER_ID) return SendClientMessage(playerid, WHITE, "Player not found");
        else
            {
            
SetPlayerHealth(targetid, 100);
            
SendClientMessage(playerid,WHITE,"Player Healed");
            
SendClientMessage(targetid,WHITE,"You have been healed"); return 1;
            }
//        }
//        else SendClientMessage(playerid,WHITE,"You are not authorized to use this command"); return 1;
    
} 
But one i make the commands when In game i see this error in the console


Notice that i'm playing in local host.
Reply
#2

Fixed, thanks alot.
Reply


Forum Jump:


Users browsing this thread: