Car system GF
#1

Hello. I'm creating a just system of cars GF. When I want to check whether the player has a car, even as it has shown that the message is. Here's the code:

Код:
for(new v = 0; v < MAX_CARS; v++)
{
if(strcmp(PlayerName(playerid), CarInfo[v][cOwner], true) == 0)
{
SendClientMessage(playerid,0xFFFFFFFF, "* Udało sie. Posiadasz auto :P");
PlayerInfo[playerid][MyCars]++;
if(CarInfo[v][cSpawn])
{
PlayerInfo[playerid][pCar][PlayerInfo[playerid][MyCars]] = AddStaticVehicleEx(CarInfo[v][cModel],CarInfo[v][cX],CarInfo[v][cY],CarInfo[v][cZ],CarInfo[v][cAng],CarInfo[v][cKolor],CarInfo[v][cKolor2], 9999);
}
}
}
Please help
Reply


Messages In This Thread
Car system GF - by MrLeNy - 12.03.2010, 17:22
Re: Car system GF - by MrLeNy - 12.03.2010, 17:35

Forum Jump:


Users browsing this thread: 1 Guest(s)