8 Warnings in Jail-Command
#1

I get these eight warnings when I try to compile this command in my script:

Код:
D:\Program Files\GTA San Andreas\SAMP_Server\gamemodes\deathmatch.pwn(407) : warning 202: number of arguments does not match definition
D:\Program Files\GTA San Andreas\SAMP_Server\gamemodes\deathmatch.pwn(407) : warning 202: number of arguments does not match definition
D:\Program Files\GTA San Andreas\SAMP_Server\gamemodes\deathmatch.pwn(409) : warning 202: number of arguments does not match definition
D:\Program Files\GTA San Andreas\SAMP_Server\gamemodes\deathmatch.pwn(409) : warning 202: number of arguments does not match definition
D:\Program Files\GTA San Andreas\SAMP_Server\gamemodes\deathmatch.pwn(411) : warning 202: number of arguments does not match definition
D:\Program Files\GTA San Andreas\SAMP_Server\gamemodes\deathmatch.pwn(411) : warning 202: number of arguments does not match definition
D:\Program Files\GTA San Andreas\SAMP_Server\gamemodes\deathmatch.pwn(411) : warning 202: number of arguments does not match definition
D:\Program Files\GTA San Andreas\SAMP_Server\gamemodes\deathmatch.pwn(411) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


8 Warnings.
PHP код:
    CMD:jail(playeridparams[])
    {
        new 
idminsstr[128];
        new 
JailTimer[MAX_PLAYERS];
        if(
PlayerInfo[playerid][pAdmin] < 4) return SendClientMessage(playerid,COLOR_RED,"You need to be level 4 to use that command!");
            if(
sscanf(params"us[128]"idmins))
            return 
SendClientMessage(playerid,TEAM_GROVE_COLOR,"USAGE: /jail [ID][MINS]");
        if (
id == INVALID_PLAYER_ID)
            return 
SendClientMessage(playerid,COLOR_RED,"Error: Player is not connected!");
            
        new 
Name[MAX_PLAYER_NAME], Name2[MAX_PLAYER_NAME];
        
GetPlayerName(playeridNamesizeof(Name));
          
GetPlayerName(idName2sizeof(Name2));
        
SetPlayerPos(playerid264.417677.89301001.0391);
        
SetPlayerInterior(playerid6);
        
JailTimer[id] = SetTimerEx("Unjail"mins*60*10000"d"id);
        
format(strsizeof(str), "You jailed %s for %d mins."GetPlayerName(id), mins); //warning
        
SendClientMessage(playeridTEAM_GROVE_COLORstr);
        
format(strsizeof(str), "%s jailed you for %d mins."GetPlayerName(playerid), mins); //warning
        
SendClientMessage(idCOLOR_REDstr);
        
format(strsizeof(str), "Administrator %s has jailed %s for %d mins!"GetPlayerName(playerid),GetPlayerName(id), mins); //warning
        
SendClientMessageToAll(COLOR_REDstr);
        return 
1;
    } 
Reply


Messages In This Thread
8 Warnings in Jail-Command - by Twisted_Insane - 06.02.2012, 18:11
Re: 8 Warnings in Jail-Command - by Max_Coldheart - 06.02.2012, 18:13
Re: 8 Warnings in Jail-Command - by Twisted_Insane - 06.02.2012, 18:17
Re: 8 Warnings in Jail-Command - by Vince - 08.02.2012, 13:03
Re: 8 Warnings in Jail-Command - by Twisted_Insane - 08.02.2012, 13:23
Re: 8 Warnings in Jail-Command - by Konstantinos - 08.02.2012, 13:41
Re: 8 Warnings in Jail-Command - by Cameltoe - 08.02.2012, 13:50
Re: 8 Warnings in Jail-Command - by Twisted_Insane - 08.02.2012, 14:15
Re: 8 Warnings in Jail-Command - by Cameltoe - 08.02.2012, 14:27
Re: 8 Warnings in Jail-Command - by Twisted_Insane - 08.02.2012, 15:08

Forum Jump:


Users browsing this thread: 1 Guest(s)