sscanf problem
#1

i have a command that working and everything ok
but the problem is that every time when i use the command
the console write me
Quote:

sscanf warning: format specifier does not match parameter count.

the command.
PHP код:
       command(adpilplayeridparams[])
       {
       if(
AdminLevel[playerid] == 1337)
       {
    new 
string[128];
    new 
ID;
    if(
sscanf(params"ui"ID))
    {
        
SendClientMessage(playeridRed"Usage: /adpil (PlayerID)");
        return 
1;
    }
    if(!
IsPlayerConnected(ID))
    {
        
SendClientMessage(playeridRed"That player ID is not connected.");
        return 
1;
    }
    if(
PlayerLevel[ID] > 200)
    {
        
SendClientMessage(playeridGreen"That player is already a pilot or higher.");
        return 
1;
    }
     new 
pname[128];
     
GetPlayerName(IDpnamesizeof(pname));
     
format(stringsizeof(string), "Server Admin has made player %s a War Pilot."pname);
     
SendClientMessageToAll(Bluestring);
      
SendClientMessage(IDBlue"Server Admin has given you Pilot Status. You can now fly the Rustlers, 
      IRC_Say(gGroupID, IRC_CHANNEL, string);
    PlayerLevel[ID] =200;
       TextDrawHideForPlayer(playerid, himessage);
        new newtext[41];
    format(string, sizeof(string), "
Level:%d", PlayerLevel[playerid]);
    TextDrawSetString(himessage, string);
        TextDrawShowForPlayer(playerid, himessage);
    return 1;
    }
    SendClientMessage(playerid, Red, "
Invalid Command");
    return 1;

the problem start when i put that i command
PHP код:
        new newtext[41];
    
format(newtextsizeof(newtext), "Level:%d"PlayerLevel[playerid]);
    
TextDrawSetString(himessagenewtext);
        
TextDrawShowForPlayer(playeridhimessage); 
Reply


Messages In This Thread
sscanf problem - by marik1322 - 17.10.2011, 12:46
Re: sscanf problem - by Kush - 17.10.2011, 12:49
Re: sscanf problem - by marik1322 - 17.10.2011, 13:25
Re: sscanf problem - by [Diablo] - 17.10.2011, 13:29
Re: sscanf problem - by marik1322 - 17.10.2011, 13:39
Re: sscanf problem - by [Diablo] - 17.10.2011, 13:42
Re: sscanf problem - by Kush - 17.10.2011, 13:44

Forum Jump:


Users browsing this thread: 1 Guest(s)