Crashed script - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Crashed script (
/showthread.php?tid=124612)
Crashed script -
E-Rage - 31.01.2010
Код:
OnPlayerStateChange
if(gang[playerid] == 1)
{
new newcar = GetPlayerVehicleID(playerid);
if(newcar == 1)
{
if(newstate == PLAYER_STATE_DRIVER)
{
SendClientMessage(playerid,COLOR,"You are not allowed to drive this car");
RemovePlayerFromVehicle(newcar);
}
}
this script always crash when i try to create a army cars only, or a a police car only why ?