[HELP]Car OwnerShip - 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: [HELP]Car OwnerShip (
/showthread.php?tid=90459)
[HELP]Car OwnerShip -
wilcock33 - 08.08.2009
hello all
i have found a car ownership filterscript but cannot add more cars, anyprtoblems you can see,plz say!!
Код:
#include <a_samp>
#define FILTERSCRIPT
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_RED 0xAA3333AA
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~VEHICLES~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
new Remington;
new Peonix;
new Infernus;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~VEHICLES~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
public OnFilterScriptInit()
{
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
print(" .:[ - - ]:.");
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
Remington = CreateVehicle(534,2118.4443,1589.0137,10.5446,179.6832,1,1,50000);//Remington
Infernus = CreateVehicle(411,3916.3721,-1616.5399,1441.0558,88.1406,9,8,50000); // skyway 1
Infernus = CreateVehicle(411,3916.2415,-1620.9866,1441.0573,87.5992,6,1,50000); // skyway2
Pheonix = CreateVehicle(603,3915.8423,-1601.9835,1441.1615,88.9358,11,90,50000); // nix skyway 02
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(oldstate == PLAYER_STATE_ONFOOT)
{
if(newstate == PLAYER_STATE_DRIVER)
{
if(GetPlayerVehicleID(playerid) == Remington)
{
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
if(strcmp(PlayerName, "Slash01", true) == 0)
{
}
else
{
RemovePlayerFromVehicle(playerid);
}
}
}
}
return 1;
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~END~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
public OnFilterScriptExit()
{
DestroyVehicle (Remington);
DestroyVehicle (Inferns);
DestroyVehicle (Infernus);
DestroyVehicle (Phoenix);
}
Re: [HELP]Car OwnerShip -
wilcock33 - 08.08.2009
sorry for double posting (charecter limit)
these are the compile errors
D:\Documents and Settings\Chris\Desktop\Server\filterscripts\carown s.pwn(22) : error 017: undefined symbol "Pheonix"
D:\Documents and Settings\Chris\Desktop\Server\filterscripts\carown s.pwn(59) : error 017: undefined symbol "Inferns"
D:\Documents and Settings\Chris\Desktop\Server\filterscripts\carown s.pwn(61) : error 017: undefined symbol "Phoenix"
D:\Documents and Settings\Chris\Desktop\Server\filterscripts\carown s.pwn(63) : warning 203: symbol is never used: "Peonix"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
Re: [HELP]Car OwnerShip -
MadeMan - 08.08.2009
Look your variables, Peonix-Pheonix-Phoenix, Infernus-Inferns.
Re: [HELP]Car OwnerShip -
wilcock33 - 08.08.2009
WOW THANKS MAN!
i am a right idiot
Re: [HELP]Car OwnerShip -
MadeMan - 08.08.2009
Well you should listen what the errors are telling you, that's all