Jump to content
  • 0

Problema comanda


marius11

Question

Problema intalnita (descriere):Problema este urmatoatea , daca adaug culori la comanda /shop si sa apara in genu Cont premium 60 Puncte Premium si la 60 sa adaug o culoare nu imi da nici o eroara da daca fac toata comanda adica si Clan 50 puncte premium si clear FP 15 puncte premium imi da eroara 
Ero(area / rile) / warning-(ul / urile):

if(strcmp(cmd, "/shop", true) == 0)
    {
        format(szMessage, sizeof(szMessage), "Server: Your premium points: {E8E40C}%d{FFFFFF}", playerVariables[playerid][pPremiumPoints]);
        ShowPlayerDialog(playerid,2222,DIALOG_STYLE_LIST, "{FFFF00}Premium Shop{FFFFFF}", "Clear Warns: {FFFF00}10{FFFF00} Pucte Premium\nPremium Account: {FFFF00}60{FFFF00} Pucte Premium\nClear Faction Punish: {FFFF00}15{FFFF00} Pucte Premium\nChange Nickname: {FFFF00}10{FFFF00} Pucte Premium\nClear car 1 KM's:{FFFF00}25{FFFF00} Pucte Premium\nClear car 2 KM's: {FFFF00}25{FFFF00} Pucte Premium\nClear car 3 KM's: {FFFF00}10{FFFF00} Puncte premium\nClear Pucte Premium car 4 KM's {FFFF00}10{FFFF00} Puncte Premium\nClan: {FFFF00}50{FFFF00} Pucte Premium\niPhone: {FFFF00}5{FFFF00} Pucte Premium\n", "Select", "Close");
        return 1;
    }
Liniile de cod / sursa / script-ul(obligatoriu):
Imagini / Video (optional):
Ati incercat sa rezolvati singur?: Nu stiu ce sa ii fac pentru ca daca fac doar cateva chesti cu culoare nu imi da daca fac tot imi da

1112.png

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Schimba

ShowPlayerDialog(playerid,2222,DIALOG_STYLE_LIST, "{FFFF00}Premium Shop{FFFFFF}", "Clear Warns: {FFFF00}10{FFFF00} Pucte Premium\nPremium Account: {FFFF00}60{FFFF00} Pucte Premium\nClear Faction Punish: {FFFF00}15{FFFF00} Pucte Premium\nChange Nickname: {FFFF00}10{FFFF00} Pucte Premium\nClear car 1 KM's:{FFFF00}25{FFFF00} Pucte Premium\nClear car 2 KM's: {FFFF00}25{FFFF00} Pucte Premium\nClear car 3 KM's: {FFFF00}10{FFFF00} Puncte premium\nClear Pucte Premium car 4 KM's {FFFF00}10{FFFF00} Puncte Premium\nClan: {FFFF00}50{FFFF00} Pucte Premium\niPhone: {FFFF00}5{FFFF00} Pucte Premium\n", "Select", "Close");

cu

new str[500];
strcat(str, "Clear Warns: {FFFF00}10{FFFF00} Pucte Premium\n");
strcat(str, "Premium Account: {FFFF00}60{FFFF00} Pucte Premium\n");
strcat(str, "Clear Faction Punish: {FFFF00}15{FFFF00} Pucte Premium\n");
strcat(str, "Change Nickname: {FFFF00}10{FFFF00} Pucte Premium\n");
strcat(str, "Clear car 1 KM's:{FFFF00}25{FFFF00} Pucte Premium\n");
strcat(str, "Clear car 2 KM's: {FFFF00}25{FFFF00} Pucte Premium\n");
strcat(str, "Clear car 3 KM's: {FFFF00}10{FFFF00} Puncte premium\n");
strcat(str, "Clear Pucte Premium car 4 KM's {FFFF00}10{FFFF00} Puncte Premium\n");
strcat(str, "Clan: {FFFF00}50{FFFF00} Pucte Premium\n");
strcat(str, "iPhone: {FFFF00}5{FFFF00} Pucte Premium\n");
ShowPlayerDialog(playerid,2222,DIALOG_STYLE_LIST, "{FFFF00}Premium Shop{FFFFFF}", str, "Select", "Close");

 

  • Upvote 1

Singura modalitate prin care ma puteti contacta:

http://steamcommunity.com/id/known_main

Link to comment
Share on other sites

  • 0

Salut,arata fix linia 6062 si linia 6063.

6062:ShowPlayerDialog(playerid,2222,DIALOG_STYLE_LIST, "{FFFF00}Premium Shop{FFFFFF}", "Clear Warns: 10 Pucte Premium\nPremium Account: 60 Pucte Premium\nClear Faction Punish: 15 Pucte Premium\nChange Nickname: 10 Pucte Premium\nClear car 1 KM's: 25 Pucte Premium\nClear car 2 KM's: 25 Pucte Premium\nClear car 3 KM's: 10 Puncte premium\nClear car 4 KM's 10 Puncte Premium\nClan: 50 Pucte Premium\niPhone: 5 Pucte Premium\n", "{FFFF00}Select", "Close");

6063: return 1;

Link to comment
Share on other sites

  • 0

Dialogul tau este foarte lung . Foloseste strcat si iti va merge . Fa ceva de genul :

 

new string[256];
strcat(string, "Clear Warns: 10 Puncte\n");

Si faci cate o linie pentru fiecare strcat , sa nu uiti sa pui \n la final pentru ca altfel iti va arata textul lipit . La ShowPlayerDialog in loc de Clear Warns si alea vei pune pur si simplu string , fara " " .

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.