Admin cars error - 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: Admin cars error (
/showthread.php?tid=243495)
Admin cars error -
Venice - 23.03.2011
i have one error in
error
Код:
C:\Users\Vijay_Rasigan\Desktop\CR-RP(LS)\CR-RP(LS)\GameModes\RWRP.pwn(10703) : error 017: undefined symbol "newcar"
C:\Users\Vijay_Rasigan\Desktop\CR-RP(LS)\CR-RP(LS)\GameModes\RWRP.pwn(12845) : warning 202: number of arguments does not match definition
C:\Users\Vijay_Rasigan\Desktop\CR-RP(LS)\CR-RP(LS)\GameModes\RWRP.pwn(12846) : warning 202: number of arguments does not match definition
C:\Users\Vijay_Rasigan\Desktop\CR-RP(LS)\CR-RP(LS)\GameModes\RWRP.pwn(12847) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
line
pawn Код:
else if(IsAnAdminCar(newcar)
{
if(PlayerInfo[playerid][pAdmin] >= 0) { }
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "** You must be on Admin to use this Car");
GameTextForPlayer(playerid, "~y~Admin Vehicle ~n~ You Are Not Admin",4000,3);
}
}
Re: Admin cars error -
Biesmen - 23.03.2011
At the top of OnPlayerStateChange:
pawn Код:
new newcar = GetPlayerVehicleID(playerid);
Re: Admin cars error -
Stigg - 23.03.2011
Edit: Too late again.
Re: Admin cars error -
Venice - 23.03.2011
im put pawno get crash
Re: Admin cars error -
Biesmen - 23.03.2011
pawn Код:
else if(IsAnAdminCar(newcar)
{
if(PlayerInfo[playerid][pAdmin] == 0)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "** You must be on Admin to use this Car");
GameTextForPlayer(playerid, "~y~Admin Vehicle ~n~ You Are Not Admin",4000,3);
}
}
There's a chance it won't work.
If your PAWNO crashes it means you have a brace too much, mostly.
Re: Admin cars error -
Venice - 23.03.2011
FIXED