[Ajuda] inputtext
#1

Alguйm me ajuda? pq nгo sei oque tб acontecendo com isso afs, tentei arruma e nгo deu certo..

Quote:

Desktop\Nova pasta\gamemodes\123.pwn(25216) : error 046: unknown array size (variable "inputtext")
Desktop\Nova pasta\gamemodes\123.pwn(25216) : error 017: undefined symbol "text"
Desktop\Nova pasta\gamemodes\123.pwn(25214) : warning 203: symbol is never used: "idx"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

pawn Код:
if (strlen(inputtext))
        {
            new year, idx; // Erro aqui ... 25214
            getdate(year);
            inputtext = strtok(text,idx); // Erro nesta linha 25216
            if(!strlen(inputtext))
            {
                SendClientMessage(playerid,COLOR_GRAD1, "ERRO: Idade Invбlida.");
                return 0;
            }
            year = strval(inputtext);
            if (year < 16 || year > 90)
            {
                ShowPlayerDialog(playerid, 69, 1, "Idade nгo estб boa man", "Idade minimo 13 ano e maximu 80 ano", "Confirmar", "Cancelar");
                return 0;
            }
            PlayerInfo[playerid][pAge] = year;
            format(string, sizeof(string), "Seu cara agora tem %d anos.", PlayerInfo[playerid][pAge]);
            SendClientMessage(playerid, COLOR_WHITE, string);
            RegistrationStep[playerid] = 3;
            new enablelist[] = "1\tLas Venturas\n2\tLos Santos\n3\tSan Fierro";
            ShowPlayerDialog(playerid, 70, DIALOG_STYLE_LIST, "Onde ose que morб, man?", enablelist, "Definir", "");
            return 0;
        }
isso ae й pra pegar a idade do cara no tutorial..
Reply


Messages In This Thread
inputtext - by SukMathcuck - 13.12.2014, 03:04
Re: inputtext - by Falcon. - 13.12.2014, 03:18
Re: inputtext - by SukMathcuck - 13.12.2014, 03:36

Forum Jump:


Users browsing this thread: 1 Guest(s)