String problem
#1

Hello guys, I have got a problem.. It doesnt shows what I want the listitem line shows wrong number (ascii i guess) and this is begin of code

pawn Код:
//FROM ENUM
vAgeSlot1[30]

new CharacterChecking [MAX_PLAYERS] [vChecking];

//THIS IS FIRST PART OF USING this variable:

format(CharacterChecking [playerid] [vAgeSlot1], 30, "Enter gender please!");
new string[220];
format (string, sizeof (string), "{FF9900}Meno postavy:\n%s\n \n{FF9900}Pohlavie postavy:\n%s\n \n{FF9900}Age of character:\n%s\n \n{FFFF00}Vytvoriť postavu", PouzivateloveInformacie [playerid] [pPostava1], VytvaranieKontrola [playerid] [vPohlavieSlot1], [B]CharacterChecking [playerid] [vAgeSlot1][/B]);
ShowPlayerDialog(playerid, 15, DIALOG_STYLE_LIST, "{FF9900}V{FFCC00}ytvбranie postavy {FF9900}(slot č.1)", string, "Pokračovať", "Ukončiť");

//Then I set the variable to number in another dialog:

new age = strval (inputtext);
               
if (age >= 18 && age <= 80)
{
    CharacterChecking [playerid] [vAgeSlot1] = age;
    new string[190];
    format (string, sizeof (string), "{FF9900}Meno postavy:\n%s\n \n{FF9900}Pohlavie postavy:\n%s\n \n{FF9900}Age of character:\n%i\n \n{FFFF00}Vytvoriť postavu", PouzivateloveInformacie [playerid] [pPostava1], VytvaranieKontrola [playerid] [vPohlavieSlot1], [B]CharacterChecking [playerid] [vAgeSlot1][/B]);
                    ShowPlayerDialog(playerid, 15, DIALOG_STYLE_LIST, "{FF9900}V{FFCC00}ytvбranie postavy {FF9900}(slot č.1)", string, "Pokračovať", "Ukončiť");
                }
I translated the problematic lines, hope you understand
Reply


Messages In This Thread
String problem - by Riwerry - 01.02.2014, 11:14
Re : String problem - by mirou123 - 01.02.2014, 11:23
Re: String problem - by Konstantinos - 01.02.2014, 11:26
Re: String problem - by Riwerry - 01.02.2014, 11:26
Re: String problem - by Riwerry - 01.02.2014, 11:34
Re: String problem - by Konstantinos - 01.02.2014, 11:38
Re: String problem - by Riwerry - 01.02.2014, 11:42

Forum Jump:


Users browsing this thread: 1 Guest(s)