03.11.2014, 19:56
Hola, estoy investigando un poco el sistema de coches de Zenon City. Querнa saber si alguno de ustedes conoce el significado de esto:
їCuando se darнa el case 0?
pawn Код:
CMD:llaves(playerid, params[])
{
new vstring[512], stext[11];
for(new i; i < MAX_PLAYERVEHICLES; i++)
{
switch(PlayerVehicleInfo[playerid][i][pvSpawned])
{
case 0: stext = "stored"; // esto.
case 1: stext = "spawned";
}
if(PlayerVehicleInfo[playerid][i][pvModelId] != 0)
format(vstring, sizeof(vstring), "%s\n%s - (%s)", vstring, VehicleName[PlayerVehicleInfo[playerid][i][pvModelId] - 400], stext);
else if(PlayerVehicleInfo[playerid][i][pvImpounded] == 1)
format(vstring, sizeof(vstring), "%s\n%s (Embargado) (%s)", vstring, VehicleName[PlayerVehicleInfo[playerid][i][pvModelId] - 400], stext);
else
format(vstring, sizeof(vstring), "%s\nVacнo", vstring);
}
ShowPlayerDialog(playerid, CARSPAWN, DIALOG_STYLE_LIST, "Tus Coches:", vstring, "(De)Spawn", "Salir");
return 1;
}
pawn Код:
switch(PlayerVehicleInfo[playerid][i][pvSpawned])
{
case 0: stext = "stored"; // esto.
case 1: stext = "spawned";
}