02.07.2011, 12:59
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):
But now i am getting these errors:
Specific lines:
Can anyone help me with this?
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;
}
Код:
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
pawn Код:
SetTimer(toilet, 3600000, true);
pawn Код:
SetTimer(Hastogo, 300000, false);