Need help with this error in my code
#1

Where im defining what im trying to find

Код:
public IsAFactionCar(carInfo)
{
	if (CarInfo[cFaction] == 1)
		{
		return 1;
	}
	return 0;
}
What i need to define
Код:
if (IsAFactionCar(newcar))
		{
		  if(PlayerInfo[playerid][pLeader] == 1||PlayerInfo[playerid][pLeader] == 3) { }
		  else { RemovePlayerFromVehicle(playerid); }
		}
Код:
G:\larp test server\gamemodes\larp.pwn(2975) : error 025: function heading differs from prototype
G:\larp test server\gamemodes\larp.pwn(2977) : error 033: array must be indexed (variable "CarInfo")
EDIT: I know somthihg new now if someone can help me difen a thing calle d cFaction in a script file then call form it wehn player enters a car that would be great not asking to write it for me just a point in some direction or what every i can get!
Thanks in advanced for the help if ya want more info let me know i will give you details in a Pm on how to contact me
Reply
#2

Darn,
That stumps me.
Greetz,
Machine.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)