many strings -
PepsiCola23 - 22.11.2016
PHP код:
if(PlayerData[playerid][FonduriEuro] < PRETCASANOUA) return SendClientMessage(playerid, COLOR_YELLOW2, "Nu ai destule fonduri");
PlayerData[playerid][FonduriEuro] = PlayerData[playerid][FonduriEuro] - PRETCASANOUA;
titles = "Ai cumparat o casa ";
strings = "{FFFFFF}Tocmai ai achizitionat o casa din itemshop,multumim\n";
strcat(strings, "{FFFFFF}Te rugam sa faci un {FF3300}PRINTSCREEN[F8]{FFFFFF} si sa contactezi un owner pentru detalii\n");
new str[128];
mysql_format(SQL, str,128,"UPDATE `users` SET `FonduriEuro`='%d' WHERE `ID`='%d' LIMIT 1",PlayerData[playerid][FonduriEuro],PlayerData[playerid]);
mysql_tquery(SQL, str, "", "");
new stringcumparare[128];
format(stringcumparare, sizeof(stringcumparare), "ITEM-SHOP: %s si-a cumparat o casa noua din item-shop.", PlayerData[playerid][Name]);
ABroadCast(RED,stringcumparare,1);
ShowPlayerDialog(playerid, DIALOG_ITEMSHOP, DIALOG_STYLE_MSGBOX,titles,strings,"Ok","");
Got this,the problem is,i think there are too many strings and the last one with the dialog doesnt show up,just the first ones,if i remove the ABroadcast,the last one shows up,how can i make so every string is shown?
Respuesta: many strings -
Swedky - 23.11.2016
Does you really need to use "titles" and "strings"? Put them in "caption[]" and "info[]" ShowPlayerDialog parameters.
If this can't fix that, give us some more info.
Re: many strings -
PepsiCola23 - 23.11.2016
No,this is not the only think that titles and strings are for.
i use them at every dialog case,look more of the code:
PHP код:
}
if(listitem == 4)
{// premium account - 5 euro
if (PlayerData[playerid][FonduriEuro] < PRETPREMIUM) return SendClientMessage(playerid, COLOR_YELLOW2, "Nu ai destule fonduri");
if (PlayerData[playerid][Premium] > 0) return SendClientMessage(playerid, COLOR_YELLOW2, "Ai deja cont Premium !");
PlayerData[playerid][FonduriEuro] = PlayerData[playerid][FonduriEuro] - PRETPREMIUM;
PlayerData[playerid][Premium] = 1;
new str[128];
mysql_format(SQL, str,128,"UPDATE `users` SET `PremiumAcc`='%d', `FonduriEuro`='%d' WHERE `ID`='%d' LIMIT 1",PlayerData[playerid][Premium],PlayerData[playerid][FonduriEuro], PlayerData[playerid]);
mysql_tquery(SQL, str, "", "");
titles = "Ai cumparat cont premium ";
strings = "{FFFFFF}Tocmai ai achizitionat cont premium din itemshop,multumim.\nPentru comenzi si detalii,/premiumhelp";
new stringcumparare[64];
format(stringcumparare, sizeof(stringcumparare), "ITEM-SHOP: %s si-a cumparat Premium Account din item-shop.", PlayerData[playerid][Name]);
ABroadCast(RED,stringcumparare,1);
}
if (listitem == 5)
{//casa noua - 5 euro
if(PlayerData[playerid][FonduriEuro] < PRETCASANOUA) return SendClientMessage(playerid, COLOR_YELLOW2, "Nu ai destule fonduri");
PlayerData[playerid][FonduriEuro] = PlayerData[playerid][FonduriEuro] - PRETCASANOUA;
titles = "Ai cumparat o casa ";
strings = "{FFFFFF}Tocmai ai achizitionat o casa din itemshop,multumim\n";
strcat(strings, "{FFFFFF}Te rugam sa faci un {FF3300}PRINTSCREEN[F8]{FFFFFF} si sa contactezi un owner pentru detalii\n");
new str[128];
mysql_format(SQL, str,128,"UPDATE `users` SET `FonduriEuro`='%d' WHERE `ID`='%d' LIMIT 1",PlayerData[playerid][FonduriEuro],PlayerData[playerid]);
mysql_tquery(SQL, str, "", "");
new stringcumparare[64];
format(stringcumparare, sizeof(stringcumparare), "ITEM-SHOP: %s si-a cumparat o casa noua din item-shop.", PlayerData[playerid][Name]);
ABroadCast(RED,stringcumparare,1);
so ,what can i use instead of this too many strings
Re: many strings -
PepsiCola23 - 23.11.2016
sorry for double post but my server is running and this is urgent..
does anybody know how to make all the strings to appear?