SA-MP Forums Archive
Car system GF - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Car system GF (/showthread.php?tid=133488)



Car system GF - MrLeNy - 12.03.2010

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


Re: Car system GF - MrLeNy - 12.03.2010

lol 218 readings and 0 replies? A joke?