11.10.2012, 13:36
Hello there. My vehicle storage system dosent work as it could.
When i do /vstorage is shows the vehicles as stored.
And when i do /vstorage and try to store and destore them it dosent work.
Could some one help me?
When i do /vstorage is shows the vehicles as stored.
And when i do /vstorage and try to store and destore them it dosent work.
Could some one help me?
Код:
#define VSTORAGE 19104
Код:
CMD:vstorage(playerid, params[]) { new vstring[1024]; for(new i, iModelID; i < MAX_PLAYERVEHICLES; i++) { if((iModelID = PlayerVehicleInfo[playerid][i][pvModelId] - 400) >= 0) { if(PlayerVehicleInfo[playerid][i][pvImpounded]) { format(vstring, sizeof(vstring), "%s\n%s (impounded)", vstring, VehicleName[iModelID]); } else if(PlayerVehicleInfo[playerid][i][pvDisabled]) { format(vstring, sizeof(vstring), "%s\n%s (disabled)", vstring, VehicleName[iModelID]); } else if(!PlayerVehicleInfo[playerid][i][pvSpawned]) { format(vstring, sizeof(vstring), "%s\n%s (stored)", vstring, VehicleName[iModelID]); } else format(vstring, sizeof(vstring), "%s\n%s (spawned)", vstring, VehicleName[iModelID]); } else strcat(vstring, "\nEmpty"); } ShowPlayerDialog(playerid, VSTORAGE, DIALOG_STYLE_LIST, "Vehicle storage", vstring, "(De)spawn", "Cancel"); return 1; }