Problem with car system
#1

Hey, I have a problem with my car system.

I wanna define MAX_CARS_FOR_SERVER (it will define MAX Cars for server...(how many buyable cars can be in server).

Problem is: I don't know how to do put this into the script

But how it's gonna work?

- When the slots go full, then server says that: "MAX_CARS_FOR_SERVER is full, change MAX_CARS_FOR... value"
- When the slots are full then cars don't spawn. (because the limit is full)

Something like this: (but it's wrong )

Код:
	if(vid >= MAX_CARS_FOR_SERVER)
	{
		print("Auto limiit on tдis [4]");
		SCM(playerid, COLOR_LIGHTRED, "Autolimiit on tдis [4 sхidukit]");
		return 0;
	}

Bad english

Thanks,
Arcanize
Reply


Messages In This Thread
Problem with car system - by Arcanize - 19.12.2010, 14:14
Re: Problem with car system - by Arcanize - 19.12.2010, 14:35
Re: Problem with car system - by Arcanize - 19.12.2010, 16:14
Re: Problem with car system - by Arcanize - 19.12.2010, 17:42
Re: Problem with car system - by Norck - 19.12.2010, 17:50

Forum Jump:


Users browsing this thread: 1 Guest(s)