else if (strcmp(cmdtext, "/relax", true)==0) { if(GetPVarInt(playerid, "Injured") != 0||PlayerCuffed[playerid]!=0||GetPVarInt(playerid, "Hospital")!=0); { SendClientMessage (playerid, COLOR_GRAD2, "You cannot do this at this time."); } { ApplyAnimation(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0); GameTextForPlayer( playerid, "~w~To stop the animation, ~n~type ~r~/stopanim ~w~!", 5000, 3 ); } return 1; }
else if (strcmp(cmdtext, "/relax", true)==0)
{
if(GetPVarInt(playerid, "Injured") != 0 || PlayerCuffed[ playerid ] != 0 || GetPVarInt(playerid, "Hospital") != 0 );
{
SendClientMessage (playerid, COLOR_GRAD2, "You cannot do this at this time.");
}
else // <----------
{
ApplyAnimation(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
GameTextForPlayer( playerid, "~w~To stop the animation, ~n~type ~r~/stopanim ~w~!", 5000, 3 );
}
return 1;
}
C:\Users\Robin\Documents\filterscripts\Anims.pwn(56) : error 036: empty statement C:\Users\Robin\Documents\filterscripts\Anims.pwn(60) : error 029: invalid expression, assumed zero
if (strcmp(cmdtext, "/relax", true) == 0)
{
ApplyAnimation(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
GameTextForPlayer( playerid, "~w~To stop the animation, ~n~type ~r~/stopanim ~w~!", 5000, 3 );
}
return 1;
}
else if (strcmp(cmdtext, "/relax", true) == 0 )
{
if(GetPVarInt(playerid, "Injured") != 0 || PlayerCuffed[ playerid ] != 0 || GetPVarInt(playerid, "Hospital") != 0 )
{
SendClientMessage (playerid, COLOR_GRAD2, "You cannot do this at this time.");
}
else
{
ApplyAnimation(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
GameTextForPlayer( playerid, "~w~To stop the animation, ~n~type ~r~/stopanim ~w~!", 5000, 3 );
}
return 1;
}
Excuse me, had a little typo.
pawn Код:
|