Pretraga

Pritisnite Enter za pretragu ili Escape za zatvaranje

Zaključano

[POMOC]FS

Započeo Horst:3
pre 12 godina
614
pregleda
8
postova
Ova tema je zaključana. Samo moderatori i administratori mogu odgovarati.
MrLego13
Hustler
pre 12 godina
Skripta koju koristim:Moj edit
Detaljan opis problema:Stavio sam toEdit fs,to je SetObjectMaterialText,cmd je /cto i kad napisem cto i odaberem neki dialog daje mi dialog sto sam zadnji put koristio,primer kad se logujem i napisem cto daje mi opet login dialog.
Dio skripte:
#include 
#include <../include/gl_common.inc>

new Object,
    Text,
    Size = 50,
    Index = 0,
    UseBold = 0,
    TextAlign = 1,
    FontName,
    FontSize = 24,
    TextColor,
    BackgColor,
    OName,
    ObjectID = 19353,
    Float:Pos, Float:Rot;
   
new bool:ObjectType = false,
    bool:CreatingTextO = false;

#define R              "{FF0000}" //Red
#define G              "{C4C4C4}" //Grey
#define Y              "{EEEA00}" //Yellow
#define B              "{00A7EE}" //Blue

#define MainDialog      556644
#define OTypeDialog    556666
#define OModelDialog    556633
#define TextDialog      556622
#define IndexDialog    556611
#define SizesDialog    445566
#define FontNDialog    447788
#define FontSDialog    448899
#define BoldDialog      442233
#define ColorDialog    995577
#define BackgDialog    883311
#define BackgColorD    557733
#define AlignDialog    999999
#define SaveDialog      888889
#define ColorDialog2    888888
#define ColorDialog3    888887
#define ColorDialog4    888886
#define ColorDialog5    888885

public OnFilterScriptInit()
{
    print("      ____________________________");
    print("      |-Text Object Editor Loaded- |");
    print("      |  Scripted by irinel1996  |");
    print("      |    Copyright © 2012-2013  |");
    print("      |      Keep the credits!    |");
    print("      |____________________________|");
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/createot", true) || !strcmp(cmdtext, "/cto", true) || !strcmp(cmdtext, "/create", true))
    {
        if(CreatingTextO == false)
        {
            TextAlign = 1,
            Text = "Example",
            FontName = "Arial",
            TextColor = HexToInt("0xFFFF8200"),
            BackgColor = HexToInt("0xFF000000");
           
            CreatingTextO = true, ShowMainMenu(playerid);
            GetPlayerPos(playerid, Pos, Pos, Pos), GetPlayerFacingAngle(playerid, Pos);
            new Float:x = Pos + (5.0 * floatsin(-Pos, degrees));
            new Float:y = Pos + (5.0 * floatcos(-Pos, degrees));
           
            Object = CreatePlayerObject(playerid, ObjectID, x, y, Pos+0.5, 0.0, 0.0, Pos - 90.0);
           
            SetPlayerObjectMaterialText(playerid, Object, Text, Index, Size, FontName,
            FontSize, UseBold, TextColor, BackgColor, TextAlign);
           
            SendClientMessage(playerid,-1,""R"* "B"INFO: "Y"New Text Object created.");
        } else { ShowMainMenu(playerid); }
        return 1;
    }
    if(!strcmp(cmdtext, "/test", true))
    {
        new MiObjeto = CreateObject(19353, 1965.633911, 1343.049560, 15.874607, 0.000000, 0.000000, 179.142486);
        SetObjectMaterialText(MiObjeto, "Example", 0, 50, "Arial", 24, 0, -32256, -16777216, 1);
        return 1;
    }
    return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == MainDialog){
        if(response){
            switch(listitem) {
                case 0:{
                    new string, type;
                    if(ObjectType == false) type = "Normal Object";
                    else if(ObjectType == true) type = "Player Object";
                    format(string, sizeof(string),""B"Curret Object Type: "Y"%s\
                    \n"G"Please, select your Object Type below:",type);
                    ShowPlayerDialog(playerid,OTypeDialog,DIALOG_STYLE_MSGBOX,"    "R"Object Type",string,"Normal O.","Player O.");
                }
                case 1:{
                    new string;
                    format(string, sizeof(string), ""B"Current Object Model ID: "Y"%d\
                    \n"G"Please, type below a Model ID for the object (example = 19353):",ObjectID);
                    ShowPlayerDialog(playerid,OModelDialog,DIALOG_STYLE_INPUT,"    "R"Object Model ID",string,"Change","Back");
                }
                case 2:{
                    new string;
                    format(string, sizeof(string),""B"Current Object Text: "Y"%s\
                    \n"G"Please, type below your text for the object:",Text);
                    ShowPlayerDialog(playerid,TextDialog,DIALOG_STYLE_INPUT,"    "R"Object Text",string,"Change","Back");
                }
                case 3: {
                    new string;
                    format(string, sizeof(string),""B"Current Material Index: "Y"%d\
                    \n"G"Please, type below the Material Index which you want use (default = 0):",Index);
                    ShowPlayerDialog(playerid,IndexDialog,DIALOG_STYLE_INPUT,"    "R"Material Index",string,"Change","Back");
                }
                case 4: {
                    new sizes;
                    strcat(sizes,""Y"1. "B"32x32 "G"(10)\
                                \n"Y"2. "B"64x32 "G"(20)\
                                \n"Y"3. "B"64x64 "G"(30)\
                                \n"Y"4. "B"128x32 "G"(40)\
                                \n"Y"5. "B"128x64 "G"(50)\
                                \n"Y"6. "B"128x128 "G"(60)\
                                \n"Y"7. "B"256x32 "G"(70)");
                    strcat(sizes,"\n"Y"8. "B"256x64 "G"(80)\
                                \n"Y"9. "B"256x128 "G"(90)\
                                \n"Y"10. "B"256x256 "G"(100)\
                                \n"Y"11. "B"512x64 "G"(110)\
                                \n"Y"12. "B"512x128 "G"(120)\
                                \n"Y"13. "B"512x256 "G"(130)\
                                \n"Y"14. "B"512x512 "G"(140)");
                    new current;
                    format(current, sizeof(current),""R"Material Size "G"| "B"Current size: "Y"%d",Size);
                    ShowPlayerDialog(playerid,SizesDialog,DIALOG_STYLE_LIST,current,sizes,"Change","Back");
                }
                case 5: {
                    new string;
                    format(string, sizeof(string), ""B"Current Text Font: "Y"%s\
                    \n"G"Please, type below the Text Font name which you want use:",FontName);
                    ShowPlayerDialog(playerid,FontNDialog,DIALOG_STYLE_INPUT,"    "R"Text Font",string,"Change","Back");
                }
                case 6: {
                    new string;
                    format(string, sizeof(string), ""B"Current Text Size: "Y"%d\
                    \n"G"Please, type below the Text Size which you want use:",FontSize);
                    ShowPlayerDialog(playerid,FontSDialog,DIALOG_STYLE_INPUT,"    "R"Text Size",string,"Change","Back");
                }
                case 7: {
                    new title; new yesorno;
                    if(UseBold == 0) yesorno = "No";
                    else if(UseBold == 1) yesorno = "Yes";
                    format(title, sizeof(title), ""R"Bold Text "G"| "B"Using Bold Text: "Y"%s",yesorno);
                    ShowPlayerDialog(playerid,BoldDialog,DIALOG_STYLE_LIST,title,""Y"1. "B"No\n"Y"2. "B"Yes","Change","Back");
                }
                case 8: {
                    new titulo;
                    format(titulo, sizeof(titulo),""R"Text Color "G"| "B"Current Text Color: "Y"%i",TextColor);
                    ShowPlayerDialog(playerid,ColorDialog,DIALOG_STYLE_LIST,titulo,""Y"1. "B"Type a ARGB color code\
                    \n"Y"2. "B"Select a predefinded color","Next","Back");
                }
                case 9: {
                    new titulo;
                    format(titulo, sizeof(titulo),""R"Object Background "G"| "B"Current Text Color: "Y"%i",BackgColor);
                    ShowPlayerDialog(playerid,BackgColorD,DIALOG_STYLE_LIST,titulo,""Y"1. "B"Disable Background\n"Y"2. "B"Type a ARGB color code\
                    \n"Y"3. "B"Select a predefinded color","Next","Back");
                }
                case 10: {
                    new title; new position;
                    if(TextAlign == 0) position = "Left";
                    else if(TextAlign == 1) position = "Center";
                    else if(TextAlign == 2) position = "Right";
                    format(title, sizeof(title), ""R"Text Alignment "G"| "B"Current Alignment: "Y"%s",position);
                    ShowPlayerDialog(playerid,AlignDialog,DIALOG_STYLE_LIST,title,""Y"1. "B"Left\n"Y"2. "B"Center\n"Y"3. "B"Right","Change","Back");
                }
                case 11: {
                    EditPlayerObject(playerid, Object);
                    SendClientMessage(playerid,-1,""R"* "B"INFO: "Y"Use "G"ESC "Y"to cancel the object edition.");
                }
                case 12: {
                    ShowPlayerDialog(playerid,SaveDialog,DIALOG_STYLE_INPUT,"    "R"Exporting Lines",
                    "Please, type a name for the object below (example = MyObject):","Export","Back");
                }
                case 13: {
                    CreatingTextO = false, DestroyPlayerObject(playerid, Object);
                    TextAlign = 1, Text = "Example", FontName = "Arial",
                    TextColor = HexToInt("0xFFFF8200"), BackgColor = HexToInt("0xFF000000"),
                    Size = 50, Index = 0, UseBold = 0,
                    FontSize = 24, OName = "0", ObjectID = 19353;
                    SendClientMessage(playerid,-1,""R"* "B"INFO: "Y"All settings have been reseted.");
                }
            }
        }
        return 1;
    }
    if(dialogid == OTypeDialog)
    {
        if(response)
        {
            ObjectType = false;
            SendClientMessage(playerid,-1,""R"* "B"Object Type: "Y"Normal Object"); ShowMainMenu(playerid);
        } else {
            ObjectType = true;
            SendClientMessage(playerid,-1,""R"* "B"Object Type: "Y"Player Object"); ShowMainMenu(playerid);
        }
        return 1;
    }
    if(dialogid == OModelDialog)
    {
        if(response)
        {
            if(!isNumeric(inputtext)) return SendClientMessage(playerid,-1,""Y"* "R"ERROR: "G"Please, use a numeric value"R"!"), ShowMainMenu(playerid);
            new string;
            ObjectID = strval(inputtext);
            format(string, sizeof(string), ""R"* "B"Object Model ID: "Y"%d",ObjectID);
            SendClientMessage(playerid,-1,string); UpdateObject(playerid), ShowMainMenu(playerid);
        } else { ShowMainMenu(playerid); }
        return 1;
    }
    if(dialogid == TextDialog){
        if(response){
            new string;
            format(string, sizeof(string),"%s",inputtext);
            Text = string; format(string, sizeof(string), ""R"* "B"Object Text: "Y"%s",Text);
            SendClientMessage(playerid,-1,string); UpdateObject(playerid), ShowMainMenu(playerid);
        } else { ShowMainMenu(playerid); }
        return 1;
    }
    if(dialogid == IndexDialog){
        if(response){
            if(!isNumeric(inputtext)) return SendClientMessage(playerid,-1,""Y"* "R"ERROR: "G"Please, use a numeric value"R"!"), ShowMainMenu(playerid);
            new string;
            Index = strval(inputtext);
            format(string, sizeof(string),""R"* "B"Object Material Index: "Y"%d",Index);
            SendClientMessage(playerid,-1,string); UpdateObject(playerid), ShowMainMenu(playerid);
        } else { ShowMainMenu(playerid); }
        return 1;
    }
    if(dialogid == SizesDialog){
        if(response)
        {
            switch(listitem) {
                case 0: Size = 10;
                case 1:  Size = 20;
                case 2:  Size = 30;
                case 3:  Size = 40;
                case 4:  Size = 50;
                case 5:  Size = 60;
                case 6:  Size = 70;
                case 7:  Size = 80;
                case 8:  Size = 90;
                case 9:  Size = 100;
                case 10:  Size = 110;
                case 11:  Size = 120;
                case 12:  Size = 130;
                case 13:  Size = 140;
                default: Size = 70;
            }
            new string;
            format(string, sizeof(string), ""R"* "B"Object Material Size: "Y"%d",Size);
            SendClientMessage(playerid,-1,string); UpdateObject(playerid), ShowMainMenu(playerid);
        } else { ShowMainMenu(playerid); }
        return 1;
    }
    if(dialogid == FontNDialog)
    {
        if(response) {
            new string; format(string, sizeof(string),"%s",inputtext); FontName = string;
            format(string, sizeof(string), ""R"* "B"Text Font: "Y"%s",FontName); SendClientMessage(playerid,-1,string);
            UpdateObject(playerid), ShowMainMenu(playerid);
        } else { ShowMainMenu(playerid); }
        return 1;
    }
    if(dialogid == FontSDialog)
    {
        if(response) {
            if(!isNumeric(inputtext)) return SendClientMessage(playerid,-1,""Y"* "R"ERROR: "G"Please, use a numeric value"R"!"), ShowMainMenu(playerid);
            new string; FontSize = strval(inputtext);
            format(string, sizeof(string), ""R"* "B"Text Size: "Y"%d",FontSize); SendClientMessage(playerid,-1,string);
            UpdateObject(playerid), ShowMainMenu(playerid);
        } else { ShowMainMenu(playerid); }
        return 1;
    }
    if(dialogid == BoldDialog)
    {
        if(response)
        {
            switch(listitem)
            {
                case 0: {
                    UseBold = 0;
                    SendClientMessage(playerid,-1,""R"* "B"Bold Text: "Y"No");
                    UpdateObject(playerid), ShowMainMenu(playerid);
                }
                case 1: {
                    UseBold = 1;
                    SendClientMessage(playerid,-1,""R"* "B"Bold Text: "Y"Yes");
                    UpdateObject(playerid), ShowMainMenu(playerid);
                }
            }
        } else { ShowMainMenu(playerid); }
        return 1;
    }
    if(dialogid == ColorDialog)
    {
        if(response)
        {
            switch(listitem)
            {
                case 0: {
                    ShowPlayerDialog(playerid,ColorDialog2,DIALOG_STYLE_INPUT,"    "R"Text Color",
                    ""G"Please, type a ARGB color code below (example = 0xFFFF0000):","Change","Back");
                }
                case 1: {
                    ShowPlayerDialog(playerid,ColorDialog3,DIALOG_STYLE_LIST,""R"Color List",
                    "{FF0000}Red\n{04B404}Green\n{00B5CD}Sky-Blue\n{FFFF00}Yellow\
                    \n{0000FF}Blue\n{848484}Grey\n{FF00FF}Pink\n{FFFFFF}White","Change","Back");
                }
            }
        } else { ShowMainMenu(playerid); }
        return 1;
    }
    if(dialogid == ColorDialog2)
    {
        if(response) {
            new string; TextColor = HexToInt(inputtext);
            format(string, sizeof(string),""R"* "B"Text Color: "Y"%i", TextColor);
            SendClientMessage(playerid,-1,string); UpdateObject(playerid), ShowMainMenu(playerid);
        } else {
            new titulo;
            format(titulo, sizeof(titulo),""R"Text Color "G"| "B"Current Text Color: "Y"%i",TextColor);
            ShowPlayerDialog(playerid,ColorDialog,DIALOG_STYLE_LIST,titulo,""Y"1. "B"Type a ARGB color code\
            \n"Y"2. "B"Select a predefinded color","Next","Back");
        }
        return 1;
    }
    if(dialogid == ColorDialog3)
    {
        if(response) {
            switch(listitem)
            {
                case 0: { TextColor = HexToInt("0xFFFF0000"); } //Red
                case 1: { TextColor = HexToInt("0xFF04B404"); }
                case 2: { TextColor = HexToInt("0xFF00B5CD"); }
                case 3: { TextColor = HexToInt("0xFFFFFF00"); } //Yellow
                case 4: { TextColor = HexToInt("0xFF0000FF"); }
                case 5: { TextColor = HexToInt("0xFF848484"); }
                case 6: { TextColor = HexToInt("0xFFFF00FF"); }
                case 7: { TextColor = HexToInt("0xFFFFFFFF"); } //White
            }
            new string; UpdateObject(playerid);
            format(string, sizeof(string),""R"* "B"Text Color: "Y"%i", TextColor);
            SendClientMessage(playerid,-1,string); ShowMainMenu(playerid);
        } else {
            new titulo;
            format(titulo, sizeof(titulo),""R"Text Color "G"| "B"Current Text Color: "Y"%i",TextColor);
            ShowPlayerDialog(playerid,ColorDialog,DIALOG_STYLE_LIST,titulo,""Y"1. "B"Type a ARGB color code\
            \n"Y"2. "B"Select a predefinded color","Next","Back");
        }
        return 1;
    }
    if(dialogid == BackgColorD)
    {
        if(response)
        {
            switch(listitem)
            {
                case 0: { BackgColor = 0; UpdateObject(playerid);  ShowMainMenu(playerid); SendClientMessage(playerid,-1,""R"* "B"Background Color: "Y"Disabled"); }
                case 1: {
                    ShowPlayerDialog(playerid,ColorDialog4,DIALOG_STYLE_INPUT,"    "R"Background Color",
                    ""G"Please, type a ARGB color code below (example = 0xFFFF0000):","Change","Back");
                }
                case 2: {
                    ShowPlayerDialog(playerid,ColorDialog5,DIALOG_STYLE_LIST,""R"Color List",
                    "{FF0000}Red\n{04B404}Green\n{00B5CD}Sky-Blue\n{FFFF00}Yellow\
                    \n{0000FF}Blue\n{848484}Grey\n{FF00FF}Pink\n{FFFFFF}White","Change","Back");
                }
            }
        } else { ShowMainMenu(playerid); }
        return 1;
    }
    if(dialogid == ColorDialog4)
    {
        if(response) {
            new string; BackgColor = HexToInt(inputtext);
            format(string, sizeof(string),""R"* "B"Background Color: "Y"%i", BackgColor);
            SendClientMessage(playerid,-1,string); UpdateObject(playerid), ShowMainMenu(playerid);
        } else {
            new titulo;
            format(titulo, sizeof(titulo),""R"Object Background "G"| "B"Current Text Color: "Y"%i",BackgColor);
            ShowPlayerDialog(playerid,BackgColorD,DIALOG_STYLE_LIST,titulo,""Y"1. "B"Disable Background\n"Y"2. "B"Type a ARGB color code\
            \n"Y"3. "B"Select a predefinded color","Next","Back");
        }
        return 1;
    }
    if(dialogid == ColorDialog5)
    {
        if(response) {
            switch(listitem)
            {
                case 0: { BackgColor = HexToInt("0xFFFF0000"); } //Red
                case 1: { BackgColor = HexToInt("0xFF04B404"); }
                case 2: { BackgColor = HexToInt("0xFF00B5CD"); }
                case 3: { BackgColor = HexToInt("0xFFFFFF00"); } //Yellow
                case 4: { BackgColor = HexToInt("0xFF0000FF"); }
                case 5: { BackgColor = HexToInt("0xFF848484"); }
                case 6: { BackgColor = HexToInt("0xFFFF00FF"); }
                case 7: { BackgColor = HexToInt("0xFFFFFFFF"); } //White
            }
            new string; UpdateObject(playerid); ShowMainMenu(playerid);
            format(string, sizeof(string),""R"* "B"Background Color: "Y"%i", BackgColor);
            SendClientMessage(playerid,-1,string);
        } else {
            new titulo;
            format(titulo, sizeof(titulo),""R"Object Background "G"| "B"Current Text Color: "Y"%i",BackgColor);
            ShowPlayerDialog(playerid,BackgColorD,DIALOG_STYLE_LIST,titulo,""Y"1. "B"Disable Background\n"Y"2. "B"Type a ARGB color code\
            \n"Y"3. "B"Select a predefinded color","Next","Back");
        }
        return 1;
    }
    if(dialogid == AlignDialog)
    {
        if(response) {
            switch(listitem)
            {
                case 0: {
                    TextAlign = 0; UpdateObject(playerid);
                    SendClientMessage(playerid,-1,""R"* "B"Text Alignment: "Y"Left"), ShowMainMenu(playerid);
                }
                case 1: {
                    TextAlign = 1; UpdateObject(playerid);
                    SendClientMessage(playerid,-1,""R"* "B"Text Alignment: "Y"Center"), ShowMainMenu(playerid);
                }
                case 2: {
                    TextAlign = 2; UpdateObject(playerid);
                    SendClientMessage(playerid,-1,""R"* "B"Text Alignment: "Y"Right"), ShowMainMenu(playerid);
                }
            }
        } else { ShowMainMenu(playerid); }
    }
    if(dialogid == SaveDialog)
    {
        if(response)
        {
            if(strlen(inputtext) <= 0) return SendClientMessage(playerid,-1,""Y"* "R"ERROR: "G"Please, type something for the object name"R"!"), ShowMainMenu(playerid);
            new string, soname;
            format(soname, sizeof(soname),"%s",inputtext); OName = soname;
            new Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ;
            GetPlayerObjectPos(playerid, Object, fX, fY, fZ),
            GetPlayerObjectRot(playerid, Object, fRotX, fRotY, fRotZ);
            if(!fexist("textobjects.txt"))
            {
                new File:archivo = fopen("textobjects.txt", io_write);
                if(ObjectType == false) {
                    format(string, sizeof(string),"new %s = CreateObject(%d, %0.4f, %0.4f, %0.4f, %0.4f, %0.4f, %0.4f);\
                    \r\nSetObjectMaterialText(%s, \"%s\", %d, %d, \"%s\", %d, %d, %i, %i, %d);",OName,ObjectID,
                    fX, fY, fZ, fRotX, fRotY, fRotZ, OName, Text, Index, Size, FontName,
                    FontSize, UseBold, TextColor, BackgColor, TextAlign);
                    fwrite(archivo,string);
                    fclose(archivo);
                } else {
                    format(string, sizeof(string),"new %s = CreatePlayerObject(playerid, %d, %0.4f, %0.4f, %0.4f, %0.4f, %0.4f, %0.4f);\
                    \r\nSetPlayerObjectMaterialText(playerid, %s, \"%s\", %d, %d, \"%s\", %d, %d, %i, %i, %d);",OName,ObjectID,
                    fX, fY, fZ, fRotX, fRotY, fRotZ, OName, Text, Index, Size, FontName,
                    FontSize, UseBold, TextColor, BackgColor, TextAlign);
                    fwrite(archivo,string); fclose(archivo);
                }
            } else {
                new File:archivo = fopen("textobjects.txt", io_append);
                if(ObjectType == false) {
                    format(string, sizeof(string),"\r\n\r\nnew %s = CreateObject(%d, %0.4f, %0.4f, %0.4f, %0.4f, %0.4f, %0.4f);\
                    \r\nSetObjectMaterialText(%s, \"%s\", %d, %d, \"%s\", %d, %d, %i, %i, %d);",OName,ObjectID,
                    fX, fY, fZ, fRotX, fRotY, fRotZ, OName, Text, Index, Size, FontName,
                    FontSize, UseBold, TextColor, BackgColor, TextAlign);
                    fwrite(archivo,string); fclose(archivo);
                } else {
                    format(string, sizeof(string),"\r\n\r\nnew %s = CreatePlayerObject(playerid, %d, %0.4f, %0.4f, %0.4f, %0.4f, %0.4f, %0.4f);\
                    \r\nSetPlayerObjectMaterialText(playerid, %s, \"%s\", %d, %d, \"%s\", %d, %d, %i, %i, %d);",OName,ObjectID,
                    fX, fY, fZ, fRotX, fRotY, fRotZ, OName, Text, Index, Size, FontName,
                    FontSize, UseBold, TextColor, BackgColor, TextAlign);
                    fwrite(archivo,string); fclose(archivo);
                }
            }
            //---
            CreatingTextO = false, DestroyPlayerObject(playerid, Object);
            TextAlign = 1, Text = "Example", FontName = "Arial",
            TextColor = HexToInt("0xFFFF8200"), BackgColor = HexToInt("0xFF000000"),
            Size = 50, Index = 0, UseBold = 0,
            FontSize = 24, OName = "0", ObjectID = 19353;
            //---
            SendClientMessage(playerid,-1,""R"* "B"INFO: "Y"Script saved, check your "G"textobjects.txt "Y"in "G"scriptfiles"Y".");
            SendClientMessage(playerid,-1,""R"* "B"INFO: "Y"All settings have been reseted.");
        } else { ShowMainMenu(playerid); }
        return 1;
    }
    return 0;
}

ShowMainMenu(playerid)
{
    new string;
    strcat(string,""Y"1. "B"Set Object Type\n"Y"2. "B"Set Object Model ID\n"Y"3. "B"Set Object Text\
    \n"Y"4. "B"Set Material Index\n"Y"5. "B"Set Material Size\n");
    strcat(string, ""Y"6. "B"Set Text Font\n"Y"7. "B"Set Text Size\n"Y"8. "B"Set Bold Text\
    \n"Y"9. "B"Set Text Color\n"Y"10. "B"Set Background Color\n"Y"11. "B"Set Text Alignment\n"Y"12. "G"Edit Object\
    \n"Y"13. "G"Export Lines\n"Y"14. "G"Reset Object");
    ShowPlayerDialog(playerid,MainDialog,DIALOG_STYLE_LIST,""R"Text Object | Main Menu",string,"Continue","Exit");
    return 1;
}

UpdateObject(playerid)
{
    GetPlayerObjectPos(playerid, Object, Pos, Pos, Pos);
    GetPlayerObjectRot(playerid, Object, Rot, Rot, Rot); DestroyPlayerObject(playerid, Object);
    Object = CreatePlayerObject(playerid, ObjectID, Pos, Pos, Pos, Rot, Rot, Rot);

    SetPlayerObjectMaterialText(playerid, Object, Text, Index, Size, FontName,
    FontSize, UseBold, TextColor, BackgColor, TextAlign);
}

public OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ)
{
    if(objectid == Object) {
        if(response == EDIT_RESPONSE_FINAL)
        {
            SendClientMessage(playerid,-1,""R"* "B"Object Edition: "Y"Updated");
            DestroyPlayerObject(playerid, Object);
            Object = CreatePlayerObject(playerid, ObjectID, fX, fY, fZ, fRotX, fRotY, fRotZ);
            SetPlayerObjectMaterialText(playerid, Object, Text, Index, Size, FontName,
            FontSize, UseBold, TextColor, BackgColor, TextAlign);
            ShowMainMenu(playerid);
        } else if(response == EDIT_RESPONSE_CANCEL) {
            SendClientMessage(playerid,-1,""R"* "B"Object Edition: "Y"No updated"); UpdateObject(playerid), ShowMainMenu(playerid);
        }
    }
}
stock HexToInt(string[]) //By Zamaroht, I think... =/
{
  if (string==0) return 0;
  new i;
  new cur=1;
  new res=0;
  for (i=strlen(string);i>0;i--) {
    if (string[i-1]<58) res=res+cur*(string[i-1]-48); else res=res+cur*(string[i-1]-65+10);
    cur=cur*16;
  }
  return res;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno)://
Adnan Lord
Made Man
pre 12 godina
Moras dialoge u GMu i u FSu , da odvojis tj. da im imena promjenis, posto se mjesaju dialozi FilterSkripte i Dialozi u Tvom GMu, pa pogledaj malo dialoge u FS i probaj da sredis.
MrLego13
Hustler
pre 12 godina
To sam pokusao namestio sam dialoze na 1 do 15 i opet nece i proverio u gmod dal imam dialoze u broj 1 do 15 nema ...
~William~
Enforcer
pre 12 godina
ma ima ti mesanje isto dialoga.
Stavi lepo
MrLego13
Hustler
pre 12 godina
Nema ☹️(( Joj login dialog je 12345 i 12346 a ovaj je 1 2 3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 nema mjesanja :@ Koji sam zadnji dialog koristio taj mi se opet poljavljuje
MrLego13
Hustler
pre 12 godina
Neko da pomogne ?
MrLego13
Hustler
pre 12 godina
Refresh ?
Robi031
Enforcer
pre 12 godina
Probaj da umjesto brojeva stavis rjec neku

Primjer

Da nije Dialog 1

Nego Dialog jedan

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava