Crashing Help
#1

public OnPlayerEnterCheckpoint(playerid)
{
if (lawenforcer[playerid] == 1)
{
PlayerPlaySound(playerid, 1186, 0.0, 0.0, 10.0);
DisablePlayerCheckpoint(playerid);
GameTextForPlayer(playerid, "Mission passed! ~n~~w~$2000 ~w~+ M4 + MP5 An Armour", 3000, 0);
GivePlayerMoney(playerid,2000);
return 1;
}
else if (ballascheck[playerid] == 1)
{
PlayerPlaySound(playerid, 1186, 0.0, 0.0, 10.0);
DisablePlayerCheckpoint(playerid);
GameTextForPlayer(playerid, "Mission passed! ~n~~w~$2000 ~w~~5 Weed + Heroin", 3000, 0);
GivePlayerMoney(playerid,2000);
return 1;
}
return 1;
}




It does set the checkpoint but when I enter it it crashes me. I would like farther help.
Reply
#2

I just fixed it. Mods please delete the thread.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)