vendredi 9 mai 2014

Ïðîáëåìà ñ äèàëîãîâûìè îêíàìè

Êàê ÿ ìîãó ñäåëàòü òàê, ÷òîá äèàëîãîâîå îêíî ââîäà ðåàãèðîâàëî òîëüêî íà ÷èñëà?




Quote:








else

{

new gun[100];



format(gun, sizeof(gun),"%s{ffffff}Ââåäèòå êîë-âî áîåïðèïàñîâ\nÑòîèìîñòü çàðÿäà - 300$\nÌàêñèìàëüíîå êîë-âî: %d çàðÿä(îâ)",gun,PlayerInfo[playerid][pRPGammo]);



ShowPlayerDialog(playerid, 70,DIALOG_STYLE_INPUT, "{ffd800}Ïîêóïêà ÐÏÃ - 7", gun, "Äàëåå", "");

}




Quote:








/* if(dialogid == 70)//ÐÏÃ ïîêóïêà

{

if(!response)

{

new Formula = 4000+inputtext*300;

if(!strlen(inputtext)) return ShowPlayerDialog(playerid, 70,DIALOG_STYLE_INPUT, "{ffd800}Ïîêóïêà ÐÏà - 7", "Ââåäèòå êîëëè÷åñòâî åùå ðàç", "Äàëåå", "Îòìåíà");

if(Formula >= GetPlayerMoney(playerid))

{

new gun[400];

SetPlayerAmmo(playerid,38,0);

GivePlayerMoney(playerid,-Formula);

gRPG[playerid] = MM;

PlayerInfo[playerid][pMoney] -= Formula;

GivePlayerWeapon(playerid,35,1*inputtext);

format(gun, sizeof(gun),"%sÂû ïðèîáðåëè {ffd800}ÐÏÃ - 7{34c924} è{ffd800} %s çàðÿäîâ",gun,inputtext);

SendClientMessage(playerid,COLOR_GREEN,gun);

}

}

else

{

ShowPlayerDialog(playerid,EQUIPMENT1,DIALOG_STYLE_ LIST,"{ffd800}Ìàãàçèí ýêèïèðîâêè","Âîîðóæåíèå\nÑíàðÿæåíèå","Âûáðàòü","Âû éòè");

}

return 1;

}*/



×òî-òî âðîäå ýòîãî, à ÷òî äåëàòü ñ äèàëîãîâûì îêíîì, íå çíàþ :(




Aucun commentaire:

Enregistrer un commentaire