16.04.2012, 15:34
HEY gUYS,
im Making a scrip like this:
I Compiled it and its successfully complied but when i connect in-game it does not show any Dialog Box why ?
Thanks in-Advance
Avi.
im Making a scrip like this:
Код:
#include <a_samp>
#define classes 1
#define pilot 2
#define airforce 3
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" All Dialogs");
print("--------------------------------------\n");
public OnPlayerConnect(playerid)
{
ShowPlayerDialog(playerid, classes,DIALOG_STYLE_LIST,"Class Select"," Pilot\n Air Force","Select", "Cancel");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == classes)
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid, pilot, DIALOG_STYLE_LIST, "Select Airport", "Las Venturas\nSan Fierro\nLos Santos", "Select", "Cancel");
}
if(listitem == 1)
{
ShowPlayerDialog(playerid, airforce, DIALOG_STYLE_LIST, "Select Airport", "Area 51\nSan Fierro Carrier", "Select", "Cancel");
}
}
return 1;
}
if(dialogid == pilot)
{
if(response)
{
if(listitem == 0)
{
SetPlayerSkin(playerid, 61);
SetPlayerPos(playerid, 1318.5935,1258.7944,10.8203,359.1960);//LVA
}
if(listitem == 1)
{
SetPlayerSkin(playerid, 61);
SetPlayerPos(playerid, -1268.1995,18.6769,14.1484,140.7841);//SFA
}
if(listitem == 2)
{
SetPlayerSkin(playerid, 61);
SetPlayerPos(playerid, 2005.6378,-2453.3921,13.5469,93.1549);//LSA
}
}
return 1;
}
if(dialogid == airforce)
{
if(response)
{
if(listitem == 0)
{
SetPlayerSkin(playerid, 287);
SetPlayerPos(playerid, 346.9412,2023.7921,22.6406,94.1359);//area51
}
if(listitem == 1)
{
SetPlayerSkin(playerid, 287);
SetPlayerPos(playerid, -1347.8959,497.1472,18.2344,358.6761);//SFC
}
}
return 1;
#endif
Thanks in-Advance
Avi.





