Help with(Yes seriously) a oilet system
#1

Hello, i am working on a very basic toilet system, just one with timers and special actions(pissing).
Sow i tried this(Yes i'm new with timers):
pawn Код:
public OnPlayerSpawn(playerid)
{
    SetTimer(toilet, 3600000, true);
        return 1;        
}

forward toilet(playerid);
public toilet(playerid)
{
    SendClientMessage(playerid, COLOR_RED, "Your blather is full, you need to go to the toilet quick!((You got 5 minutes))");
    SetTimer(Hastogo, 300000, false);
}
forward Hastogo(playerid);
public Hastogo(playerid)
{
    SendClientMessage(playerid, COLOR_RED, "You could not hold it in anylonger! You've started to urinate!");
        if(IsPlayerInAnyVehicle(playerid))
        {
            SendClientMessage(playerid, COLOR_RED, "Quick, get out! You dont want to pee all over de car seat dont you?");
        }
        else
        {
            SetPlayerSpecialAction(playerid, 68);
        }
        return 1;
    }
But now i am getting these errors:
Код:
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\RcRP.pwn(2454) : error 076: syntax error in the expression, or invalid function call
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\RcRP.pwn(1371) : error 076: syntax error in the expression, or invalid function call
Specific lines:
pawn Код:
SetTimer(toilet, 3600000, true);
pawn Код:
SetTimer(Hastogo, 300000, false);
Can anyone help me with this?
Reply


Messages In This Thread
Help with(Yes seriously) a oilet system - by justsomeguy - 02.07.2011, 12:59
Re: Help with(Yes seriously) a oilet system - by Jay. - 02.07.2011, 13:01
Re: Help with(Yes seriously) a oilet system - by justsomeguy - 02.07.2011, 13:02
Re: Help with(Yes seriously) a oilet system - by Jay. - 02.07.2011, 13:23
Re: Help with(Yes seriously) a oilet system - by justsomeguy - 02.07.2011, 13:25
Re: Help with(Yes seriously) a oilet system - by Jay. - 02.07.2011, 13:26

Forum Jump:


Users browsing this thread: 1 Guest(s)