25.12.2012, 23:09
pawn Код:
CMD:vstorage(playerid, params[])
{
new szCars[1024];
for(new v; v < MAX_PLAYER_VEHICLES; v++) {
if(playerVehicles[playerid][v][cModelID] > 399) {
if(playerVehicles[playerid][v][cStored] == 0) {
format(szCars, sizeof(szCars), "[%d] | %s | Stored(click to spawn) ", v, VehicleName[playerVehicles[playerid][v][cModelID] - 400]);
}
else if(playerVehicles[playerid][v][cStored] == 1) {
format(szCars, sizeof(szCars), "[%d] | %s | Spawned(click to store)", v, VehicleName[playerVehicles[playerid][v][cModelID] - 400]);
}
}
else strcat(szCars, "\nEmpty(available slot)");
}
ShowPlayerDialog(playerid, DIALOG_MYCARS, DIALOG_STYLE_LIST, "[ VEHICLES ]", szCars, "Select", "Cancel");
return 1;
}
I presume this is a small fix, thanks