No errors, but won't work - 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: No errors, but won't work (
/showthread.php?tid=190322)
No errors, but won't work -
marinov - 14.11.2010
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid)
{
if(StarsCar[0] <= vehicleid <= StarsCar[1])
if(team[playerid] != 6)
ClearAnimations(playerid),SendClientMessage(playerid,GREEN,"You're not S.T.A.R.S.");
else
if(UCCars[0] <= vehicleid <= UCCars[1])
if(team[playerid] != 7)
ClearAnimations(playerid),SendClientMessage(playerid,GREEN,"You're not U.C.");
return 1;
}
I doesn't give any errors, but it doesn't work in game =/
Re: No errors, but won't work -
marinov - 14.11.2010
How do I fix it ?
Re: No errors, but won't work -
marinov - 14.11.2010
anybody ?
Re: No errors, but won't work -
Cameltoe - 14.11.2010
First of all, don't double post..
Second, what are you trying to achieve?
Like this?
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid)
{
if(StarsCar[0] == vehicleid || StarsCar[1] == vehicleid)
if(team[playerid] != 6)
ClearAnimations(playerid),SendClientMessage(playerid,GREEN,"You're not S.T.A.R.S.");
else
if(UCCars[0] == vehicleid || UCCars[1] == vehicleid)
if(team[playerid] != 7)
ClearAnimations(playerid),SendClientMessage(playerid,GREEN,"You're not U.C.");
return 1;
}
Re: No errors, but won't work -
marinov - 14.11.2010
is the private vehicle thing
this works :
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid)
{
if(StarsCar[0] == vehicleid || StarsCar[1] == vehicleid)
if(team[playerid] != 6)
ClearAnimations(playerid),SendClientMessage(playerid,GREEN,"You're not S.T.A.R.S.");
return 1;
}
but I wanna make some other vehicles private for other team
get it ?
Re: No errors, but won't work -
Jefff - 15.11.2010
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid)
{
if(StarsCar[0] <= vehicleid <= StarsCar[1])
if(team[playerid] != 6)
ClearAnimations(playerid),SendClientMessage(playerid,GREEN,"You're not S.T.A.R.S.");
if(UCCars[0] <= vehicleid <= UCCars[1])
if(team[playerid] != 7)
ClearAnimations(playerid),SendClientMessage(playerid,GREEN,"You're not U.C.");
return 1;
}
Why another topic..
Re: No errors, but won't work -
marinov - 15.11.2010
cause Is kinda different lol
thx btw