01.02.2014, 11:26
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ť");
}