30.12.2011, 01:49
hey, I am not sure why you saved the vehicleid in mysql since it is total useless there
To get your wanted result you only need
To get your wanted result you only need
pawn Code:
CMD:myveh(playerid, params[]) {
new
i = 0,
iMsg[128],
name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof name);
while(++i != MAX_VEHICLES) {
if(strmatch(vInfo[OwnedVeh(i)][vOwner], name)) { // strmatch ?
format(iMsg,sizeof(iMsg), #CRED ">" #CORANGE "'%s' "#CDGREEN "You Own Model:" #CORANGE "%i" #CDGREEN " CarID:" #CORANGE "%i" #CRED "<", name, vInfo[OwnedVeh(i)], i);
SendClientMessage(playerid, -1, iMsg);
}
}
return 1;
}