help help ! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help help ! (
/showthread.php?tid=608375)
help help ! -
Warnin - 31.05.2016
hi guys. i need help ! when i use /veh then i click Bikes and when i opened it its Airplaines not Bikes.
Re: help help ! -
Fantje - 31.05.2016
Show me your OnDialogResponse and you dialog you made
Re: help help ! -
Warnin - 31.05.2016
Код:
//==========================On Dialog Response==================================
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new idx;
new string[128];
new params[128];
// new cmd[256];
new moneys[MAX_PLAYERS];
new giveplayer[128];
new giveplayerid;
new sendername[MAX_PLAYER_NAME];
new playermoney[MAX_PLAYERS];
new iparam1;
new adminname[MAX_PLAYER_NAME], playername[MAX_PLAYER_NAME];
new player1,colour1, colour2;
if (dialogid==1 && response==1)
Код:
CMD:veh(playerid,params[]) {
#pragma unused params
if(PlayerInfo[playerid][Level] >= 0 || instunt[playerid] == 1) {
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_RED,"ERROR: You already have a car.");
else {
ShowPlayerDialog( playerid, DIALOGID3+24, DIALOG_STYLE_LIST, "Vehicle Types", "Bikes\nConvertibles\nIndustrial\nLowriders\nOff Road\nPublic Service Vehicles\nSaloons\nSport Vehicles\nStation Wagons ", "Select", "Cancel" );
return 1;
}
} else return SendClientMessage(playerid,COLOR_RED,"");
}
Re: help help ! -
Fantje - 31.05.2016
Show us the full dialog response
Re: help help ! -
Warnin - 31.05.2016
its fixed now .