12.03.2010, 17:22
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:
Please help
Код:
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); } } }
![Embarrassed](images/smilies/redface.gif)