SA-MP Forums Archive
sscanf error: system not initialized - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: sscanf error: system not initialized (/showthread.php?tid=561555)



sscanf error: system not initialized - Alvin007 - 03.02.2015

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

CMD
:heal(playeridparams[])
    {
        new 
targetid;
    
//    if(PlayerInfo[playerid][pAdmin]>0)
//        {
        
if(sscanf(params,"u"targetid)) return SendClientMessage(playeridWHITE,"USAGE: /heal [PlayerID]");
           else if (
targetid == INVALID_PLAYER_ID) return SendClientMessage(playeridWHITE"Player not found");
        else
            {
            
SetPlayerHealth(targetid100);
            
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.


Re : sscanf error: system not initialized - Alvin007 - 03.02.2015

Fixed, thanks alot.