Posts: 1,767
Threads: 124
Joined: Mar 2010
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
for(new i = 0; i < MAX_OWNABLE_VEH; i++)
{
new string[128], vehstring[128], count = 0;
format(vehstring, sizeof(vehstring), "%s\n%s", VehicleNames[GetVehicleModel(VehicleInfo[ VehicleInfo[i][pVehOwner] ][pVehModel]) - 400], vehstring);
count += 1;
format(string, sizeof(string), "%s", vehstring);
ShowInfo(playerid, "Pojazdy - lista", string);
}
}
There's a problem with first format line.. exactly with VehicleNames.. How to set properly those things?
GetVehicleModel(vehicleid) but i need to check vehicle names that players owns and show him in Dialog box.
Posts: 1,767
Threads: 124
Joined: Mar 2010
Posts: 526
Threads: 59
Joined: Feb 2011
Reputation:
0
Explain it a bit more please.
I can't understand what you are trying to do.
Posts: 1,767
Threads: 124
Joined: Mar 2010
There's no difference in the code between yours and mine.. What do you wan't to me to test?
Posts: 224
Threads: 37
Joined: Feb 2011
Reputation:
0
There is a difference, read through your code, read through my code
Posts: 1,767
Threads: 124
Joined: Mar 2010
You just added a SendClientMessage function. Still error "Unknown command".
@Shetch, i just wondering how to show player a list of his vehicles that he already owns..
Posts: 1,767
Threads: 124
Joined: Mar 2010
Still trying to do.. anyone got an idea?
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
for(new i = 1; i < MAX_BUYABLE_VEH; i++)
{
if(strmatch(VehicleInfo[i][vVehOwner], PlayerName(playerid)))
{
new string[128], vehstring[128], count = 0;
format(vehstring, sizeof(vehstring), "%s\n%s", VehicleNames[GetVehicleModel(VehicleInfo[i][vVehModel]) - 400], vehstring);
count += 1;
format(string, sizeof(string), "%s", vehstring);
ShowPlayerDialog(playerid, DIALOG_VEHICLE_LIST, DIALOG_STYLE_LIST, "Lista pojazdуw", string, "Okey", "");
}
}
}