Who owns what car?
#1

I am creating a Car system.

When the player changes state if he doesn't own the car i want him not to be able to drive it.

in Onplayerstate change to driver state i put this:
Код:
new Owner[128] = CarInfo[idx][cOwner];
   		 GetPlayerName(playerid, name, sizeof(name));
		if(Owner == name)
		{
		SendClientMessage(playerid, COLOR_RED, "YOU DO NOT OWN THIS CAR");
		return 0;
		}
what do i do to get this to work

here is my car enum:
Код:
enum carInfo
{
	cStatus,
	cOwner[32],
	Float:cX,
	Float:cY,
	Float:cZ,
	Float:cAngle,
	cModel,
	cColor1,
	cColor2,
	Text3D:bText,
	cMod1,
	cMod2,
	cMod3,
	cMod4,
	cMod5,
 	cMod6
}
new CarInfo[MAX_CAR][carInfo];
please help me
Reply


Messages In This Thread
Who owns what car? - by jeffery30162 - 13.03.2014, 01:26
Re: Who owns what car? - by nmader - 13.03.2014, 01:42
Re: Who owns what car? - by Ceathor - 13.03.2014, 01:51
Re: Who owns what car? - by jeffery30162 - 13.03.2014, 22:19

Forum Jump:


Users browsing this thread: 1 Guest(s)