sscanf problem
#7

PHP код:
COMMAND:adpil(playeridparams[]) {
    new
        
string[128],
        
id,
        
plname[MAX_PLAYER_NAME],
        
newtext[41];
      
GetPlayerName(idplnamesizeof(plname));
    if(
AdminLevel[playerid] != 1337) return 0;
    if(
sscanf(params"u"id)) return SendClientMessage(playerid, -1"USAGE: adpil [playerid]");
    if(!
IsPlayerConnected(id)) return 0;
    if(
PlayerLevel[id] == 200) return SendClientMessage(playerid, -1"Player is already pilot");
    
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(gGroupIDIRC_CHANNELstring);
    
PlayerLevel[id] = 200;
    
TextDrawHideForPlayer(playeridhimessage);
    
format(stringsizeof(string), "Level:%d"PlayerLevel[playerid]);
        
TextDrawSetString(himessagestring);
        
TextDrawShowForPlayer(playeridhimessage);
        
    return 
1;

Re-done, untested.
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)