Quote:
Originally Posted by Pharrel
pawn Код:
stock GetCarIDFromPlayer_Enum(playerid) { for(new i=1; i<MAX_VEHICLES; i++)//if you use a sizeof you dont will get all the vehicles becouse you must have other cars before the owned vehicles... { if(!strcmp(CarInfo[i][vOwner], PlayerName(playerid),false)) return i; } return 0; }
if(GetCarIDFromPlayer_Enum(playerid) == 0)//he dont have a car...
|
"//if you use a sizeof you dont will get all the vehicles becouse you must have other cars before the owned vehicles..." - Nah I only want it for owned vehicles...
if == 0 would work why doesn't == -1?