IsNumeric and Gender problem
#1

I have problem with IsNumeric and Gender Problem

i follow SuperS82's tutorial called "Using OnPlayerText to make Questions"
it works fine until i get error from here

pawn Код:
if((strcmp("male", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("male")))
Error

Код:
error 017: undefined symbol "tmp"
and how to check if the in put in this code

pawn Код:
if(pInfo[playerid][TutStep] == 1)
    {
        if(!strlen(text))
        {
            SendClientMessage(playerid, COLOR_RED, "What is your Age?");
            SendClientMessage(playerid, COLOR_WHITE, "HINT: Allowed age 10 to 35");
            return 0;
        }
        if(strlen(text) != 2)
        {
            SendClientMessage(playerid, COLOR_RED,"2 Characters Digit only!!!");
            return 0;
        }
        format(string, sizeof(string), "Ok, so you are %d years old", strval(text));
        SendClientMessage(playerid, COLOR_YELLOW, string);
        dini_IntSet(file, "Age", strval(text));
        for(new i = 0; i < 100; i++)
        SendClientMessageToAll(COLOR_WHITE," ");
        SendClientMessage(playerid, COLOR_RED, "What is your Gender?");
        SendClientMessage(playerid, COLOR_WHITE, "HINT: Allowed Gender: male and female");
        pInfo[playerid][TutStep] = 2;
        return 0;
    }
was a alphabetical letter. i tired

pawn Код:
if(!IsNumeric(strlen(text)))
but i get this error

Код:
error 035: argument type mismatch (argument 1)
Reply


Messages In This Thread
IsNumeric and Gender problem - by Reklez - 18.03.2012, 04:30
Re: IsNumeric and Gender problem - by Alvord - 18.03.2012, 04:43
Re: IsNumeric and Gender problem - by Reklez - 18.03.2012, 04:56
Re: IsNumeric and Gender problem - by Jonny5 - 18.03.2012, 05:04
AW: IsNumeric and Gender problem - by peugeot - 18.03.2012, 05:08
Re: IsNumeric and Gender problem - by Reklez - 18.03.2012, 05:11
Re: AW: IsNumeric and Gender problem - by Jonny5 - 18.03.2012, 05:22

Forum Jump:


Users browsing this thread: 4 Guest(s)