21.03.2015, 16:02
Quote:
Show the code where you show the dialog, most likely OnPlayerEnterCheckpoint.
|
PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
if(Car[playerid] == 0)
{
PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
ShowPlayerDialog(playerid, 2386, DIALOG_STYLE_LIST, "Cars", "Landstalker ($125,000)\nElegy ($200,000)\nInfernus ($500,000)\nSultan ($350,000)\nFlash ($300,000)\nBuffalo ($475,000)\nMonster ($775,000)\nCheetah ($375,555)\nSlamvan ($430,000)\nFortune ($450,550)\nBullet ($475,550)\nAdmiral ($175,000)\nHotknife ($490,000)\nElegant ($403, 500)\nSuper-Gt ($498,500)\nZr-350 ($475,550)", "Buy", "Cancel");
Car[playerid] = 0;
}
return 1;
}