command help please.
#9

pawn Код:
CMD:vstorage(playerid, params[])
{
             for(new i; i < MAX_PLAYERVEHICLES; i++)
             {
               if(PlayerVehicleInfo[playerid][i][pvId] > INVALID_PLAYER_VEHICLE_ID)
               {
                 new vstring[1024];
                 format(vstring, sizeof(vstring), "%s\n%s", vstring, VehicleName[PlayerVehicleInfo[playerid][i][pvModelId] - 400]);
                 LoadPlayerVehicles(playerid, pvId);(error)
                 return 1;
               }
               if(PlayerVehicleInfo[playerid][i][pvImpounded] == 1)
               {
                 new vstring[1024];
                 format(vstring, sizeof(vstring), "%s\n%s (impounded)", vstring, VehicleName[PlayerVehicleInfo[playerid][i][pvModelId] - 400]);
                 UnloadPlayerVehicles(playerid, pvId);(error)
                 return 1;
               }
               else
               {
                  new vstring[1024];
                 format(vstring, sizeof(vstring), "%s\nEmpty", vstring);
               }
              }
              //new vstring[1024];
              ShowPlayerDialog(playerid, VSTORAGE, DIALOG_STYLE_LIST, "OnStar Vehicle Storage", vstring, "(De)Spawn", "Cancel");
}
              return 1;
}

try using this.
Reply


Messages In This Thread
command help please. - by eastern - 07.08.2013, 02:19
Re: command help please. - by PrinceKumar - 07.08.2013, 02:25
Re: command help please. - by Edix - 07.08.2013, 02:35
Re: command help please. - by Max5 - 07.08.2013, 02:39
Re: command help please. - by PrinceKumar - 07.08.2013, 02:44
Re: command help please. - by eastern - 07.08.2013, 02:44
Re: command help please. - by Edix - 07.08.2013, 02:45
Re: command help please. - by eastern - 07.08.2013, 02:48
Re: command help please. - by Edix - 07.08.2013, 02:52
Re: command help please. - by eastern - 07.08.2013, 02:56

Forum Jump:


Users browsing this thread: 1 Guest(s)