many strings
#1

PHP код:
                if(PlayerData[playerid][FonduriEuro] < PRETCASANOUA) return SendClientMessage(playeridCOLOR_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(SQLstr,128,"UPDATE `users` SET `FonduriEuro`='%d' WHERE `ID`='%d' LIMIT 1",PlayerData[playerid][FonduriEuro],PlayerData[playerid]);
                
mysql_tquery(SQLstr"""");
                new 
stringcumparare[128];
                
format(stringcumpararesizeof(stringcumparare), "ITEM-SHOP: %s si-a cumparat o casa noua din item-shop."PlayerData[playerid][Name]);
                
ABroadCast(RED,stringcumparare,1);
ShowPlayerDialog(playeridDIALOG_ITEMSHOPDIALOG_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?
Reply
#2

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.
Reply
#3

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(playeridCOLOR_YELLOW2"Nu ai destule fonduri");
                if (
PlayerData[playerid][Premium] > 0) return SendClientMessage(playeridCOLOR_YELLOW2"Ai deja cont Premium !");
                
PlayerData[playerid][FonduriEuro] = PlayerData[playerid][FonduriEuro] - PRETPREMIUM;
                
PlayerData[playerid][Premium] = 1;
                new 
str[128];
                
mysql_format(SQLstr,128,"UPDATE `users` SET `PremiumAcc`='%d', `FonduriEuro`='%d' WHERE `ID`='%d' LIMIT 1",PlayerData[playerid][Premium],PlayerData[playerid][FonduriEuro], PlayerData[playerid]);
                
mysql_tquery(SQLstr"""");
                
titles "Ai cumparat cont premium  ";
                
strings "{FFFFFF}Tocmai ai achizitionat cont premium din itemshop,multumim.\nPentru comenzi si detalii,/premiumhelp";
                new 
stringcumparare[64];
                
format(stringcumpararesizeof(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(playeridCOLOR_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(SQLstr,128,"UPDATE `users` SET `FonduriEuro`='%d' WHERE `ID`='%d' LIMIT 1",PlayerData[playerid][FonduriEuro],PlayerData[playerid]);
                
mysql_tquery(SQLstr"""");
                new 
stringcumparare[64];
                
format(stringcumpararesizeof(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
Reply
#4

sorry for double post but my server is running and this is urgent..

does anybody know how to make all the strings to appear?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)