16.09.2011, 04:32
I don't think this will make much of a difference but.. Try this.
Oh and are you sure its 1 not -1?
Код:
stock GetCarIDFromPlayer(playerid) { new PlayersName[MAX_PLAYER_NAME]; GetPlayerName(playerid, PlayersName, MAX_PLAYER_NAME); for(new i=0; i<sizeof(CarInfo); i++) { if(!strcmp(CarInfo[i][vOwner], PlayersName, true)) return i; //Returns the Vehicle ID } return -1; }