[HELP]Car OwnerShip
#1

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);
}
Reply
#2

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.
Reply
#3

Look your variables, Peonix-Pheonix-Phoenix, Infernus-Inferns.
Reply
#4

WOW THANKS MAN!

i am a right idiot
Reply
#5

Well you should listen what the errors are telling you, that's all
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)