String problem
#3

vAgeSlot1 should be an integer and not a string.

pawn Код:
//FROM ENUM
vAgeSlot1

new CharacterChecking [MAX_PLAYERS] [vChecking];

//THIS IS FIRST PART OF USING this variable:

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:\nEnter gender please!\n \n{FFFF00}Vytvoriť postavu", PouzivateloveInformacie [playerid] [pPostava1], VytvaranieKontrola [playerid] [vPohlavieSlot1]);
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], CharacterChecking [playerid] [vAgeSlot1]);
    ShowPlayerDialog(playerid, 15, DIALOG_STYLE_LIST, "{FF9900}V{FFCC00}ytvбranie postavy {FF9900}(slot č.1)", string, "Pokračovať", "Ukončiť");
}
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)