Reaction Help
#5

How do you mean like this
pawn Код:
stock randomletters(string[], bool:ignorecase = true, maxlen = sizeof(string))
{
    new i;
    while(i < maxlen)
    {
        if(random(2))
            string[i] = random(26) + 65; //upper
        else
            string[i] = random(26) + 97; //lower
        i++;
    }
    return 1;
}
pawn Код:
public OnPlayerText(playerid, text[])
{
    if(StartTest)
    {
        if(!strcmp(text,ContestAnswer,true))
        {
            OnPlayerWinContest(playerid);
            return 0;
        }
    }
    return 1;
}
I got a warning at line 7
pawn Код:
stock randomletters(string[], bool:ignorecase = true, maxlen = sizeof(string))
pawn Код:
warning 203: symbol is never used: "ignorecase"
Reply


Messages In This Thread
Reaction Help - by Kostas' - 07.11.2011, 17:55
Re: Reaction Help - by RyDeR` - 07.11.2011, 17:57
Re: Reaction Help - by Kostas' - 07.11.2011, 19:04
Re: Reaction Help - by RyDeR` - 07.11.2011, 19:06
Re: Reaction Help - by Kostas' - 07.11.2011, 20:15
Re: Reaction Help - by Jefff - 07.11.2011, 23:14
Re: Reaction Help - by Kostas' - 08.11.2011, 12:48

Forum Jump:


Users browsing this thread: 1 Guest(s)