31.05.2014, 04:17
You know that > 0 is the exact same as >= 1 right?
EDIT:
It's this:
- You're setting the newbie timer before it even checks if the newbie timer is above what it should be.
::
EDIT:
It's this:
pawn Код:
if(PlayerInfo[playerid][pHelper]< 1 && PlayerInfo[playerid][pAdmin] < 1)
{
NewbieTimer[playerid] = 15;
}
if(PlayerInfo[playerid][pHelper] >= 1 && PlayerInfo[playerid][pAdmin] < 1)
{
NewbieTimer[playerid] = 5;
}
if(IsAdmin(playerid))
{
NewbieTimer[playerid] = 0;
}
if(NewbieTimer[playerid] > 0)
{
format(string, sizeof(string), "You must wait %d seconds before using this channel again.", NewbieTimer[playerid]);
SendClientMessageEx(playerid, COLOR_GREY, string);
return 1;
}
::
pawn Код:
if(NewbieTimer[playerid] > 0)
{
format(string, sizeof(string), "You must wait %d seconds before using this channel again.", NewbieTimer[playerid]);
SendClientMessageEx(playerid, COLOR_GREY, string);
return 1;
}
if(PlayerInfo[playerid][pHelper]< 1 && PlayerInfo[playerid][pAdmin] < 1)
{
NewbieTimer[playerid] = 15;
}
if(PlayerInfo[playerid][pHelper] >= 1 && PlayerInfo[playerid][pAdmin] < 1)
{
NewbieTimer[playerid] = 5;
}
if(IsAdmin(playerid))
{
NewbieTimer[playerid] = 0;
}