Jump to content

Sunt chior sau nu ? Hmm


Recommended Posts

Salut, am si eu problema la un didalog imi tot da eroare la strcat : error 001: expected token: "-string end-", but found "-identifier-"

Nu vad unde este gresit sincer ce virgula sau punct si virgula e gresit, s au ce este gresit asa ca daca puteti sa imi spuneti voi. Multumesc anticipat.

	new title[40];
	format(title, sizeof(title), "%s's HUD", GetName(playerid));

	new szDialog[1024];
	strcat(szDialog, "Tipul HUD-ului\t\tStatus\n");
	strcat(szDialog, ArataMoneyBarMiliarde[playerid] == 0 ? "1. MoneyBar cu miliarde\t\t<<{FF0000}Disabled{FFFFFF}>>\n" : "1. MoneyBar cu miliarde\t\t<<{0AC917}Enabled{FFFFFF}>>\n");
	strcat(szDialog, ArataFPSTick[playerid] == 0 ? "2. FPS/TICKS\t\t<<{FF0000}Disabled{FFFFFF}>>\n" : "2. FPS/TICKS\t\t<<{0AC917}Enabled{FFFFFF}>>\n");
	strcat(szDialog, ArataUpdateBani[playerid] == 0 ? "3. ArataMoneyUpdate\t\t<<{FF0000}Disabled{FFFFFF}>>\n" : "3. ArataMoneyUpdate\t\t<<{0AC917}Enabled{FFFFFF}>>\n");
	ShowPlayerDialog(playerid, DIALOG_HUD, DIALOG_STYLE_TABLIST_HEADERS, title, szDialog, "oK", "Exit");

 

Link to comment
Share on other sites

    new title[40];
    format(title, sizeof(title), "%s's HUD", GetName(playerid));

    new szDialog[600], string[100];
    strcat(szDialog, "Tipul HUD-ului\t\tStatus\n");
    format(string, sizeof(string), "1. Moneybar cu miliarde\t\t%s", ( ArataMoneyBarMiliarde[playerid] ) ? ( "<<{0AC917}Enabled{FFFFFF}>>" ) : ( "<<{FF0000}Disabled{FFFFFF}>" ));
    strcat(szDialog, string);
    format(string, sizeof(string), "2. FPS/TICKS\t\t%s", ( ArataFPSTick[playerid] ) ? ( "<<{0AC917}Enabled{FFFFFF}>>" ) : ( "<<{FF0000}Disabled{FFFFFF}>" ));
    strcat(szDialog, string);
    format(string, sizeof(string), "2. ArataMoneyUpdate\t\t%s", ( ArataUpdateBani[playerid] ) ? ( "<<{0AC917}Enabled{FFFFFF}>>" ) : ( "<<{FF0000}Disabled{FFFFFF}>" ));
    strcat(szDialog, string);
    ShowPlayerDialog(playerid, DIALOG_HUD, DIALOG_STYLE_TABLIST_HEADERS, title, szDialog, "oK", "Exit");

Incearca asa.

Edited by BaFFyJunior
  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.