20.01.2013, 18:05
(
Последний раз редактировалось Saw®; 10.02.2013 в 08:53.
)
Resolved.
forward Silencer();
public Silencer()
{
for(new i; i<MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
SecondesMute[i] ++;
if(SecondesMute[i] == 600)
{
SendClientMessage(i,COLOR_WHITE,"10min of mute is done , you can speak.");
Mute[i]=0;
SecondesMute[i]=0;
KillTimer(TuerSilencer);
}
}
return 1;
}
if(!params[0]||!(pos=chrfind(' ',params))||!params[pos])
I want it only for the ID i wrote. |
TuerSilencer[ playerid ] = SetTimerEx( "Silencer", "1000", true, "i", playerid);
forward Silencer();
public Silencer()
forward Silencer(playerid);
public Silencer(playerid)
C:\Documents and Settings\PC\Bureau\DATABASE DE ALAE\SND\Votre Destin Role Play\gamemodes\VDRP.pwn(424) : warning 217: loose indentation C:\Documents and Settings\PC\Bureau\DATABASE DE ALAE\SND\Votre Destin Role Play\gamemodes\VDRP.pwn(557) : warning 217: loose indentation C:\Documents and Settings\PC\Bureau\DATABASE DE ALAE\SND\Votre Destin Role Play\gamemodes\VDRP.pwn(753) : warning 217: loose indentation C:\Documents and Settings\PC\Bureau\DATABASE DE ALAE\SND\Votre Destin Role Play\gamemodes\VDRP.pwn(875) : warning 217: loose indentation C:\Documents and Settings\PC\Bureau\DATABASE DE ALAE\SND\Votre Destin Role Play\gamemodes\VDRP.pwn(1248) : error 035: argument type mismatch (argument 2) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
new TuerSilencer;
new TuerSilencer[MAX_PLAYERS];
TuerSilencer[ playerid ] = SetTimerEx( "Silencer", "1000", "true", "i", playerid);
TuerSilencer[ playerid ] = SetTimerEx( "Silencer", 1000, true, "i", playerid);
C:\Documents and Settings\PC\Bureau\DATABASE DE ALAE\SND\Votre Destin Role Play\gamemodes\VDRP.pwn(1248) : error 076: syntax error in the expression, or invalid function call