Help?
#1

I am getting an Error I have never had before with this code;
pawn Код:
case 2: // Age check
                    {
                        new idx,tmp[128];
                        tmp = strtok(text, idx); // Line 665
                        new check = strval(tmp);
                        if(check < 10 || check > 100)
                        {
                            SendClientMessage(playerid, COLOR_GRAY, "SERVER: Cannot go under 10 or above 100.");
                            return 0;
                        }
                        PlayerInfo[playerid][pAge] = check;
                        PlayerInfo[playerid][pTutorialStep] = 3;
                        format(string, sizeof(string), "INFO: Ok, so you are a %d year old.",PlayerInfo[playerid][pAge]);
                        SendClientMessage(playerid,COLOR_RED,string);
                        SendClientMessage(playerid, COLOR_RED, "QUESTION: What is the full word of DM?");
                       SendClientMessage(playerid, COLOR_WHITE, "- Type in the awnser without any spaces -");
                        return 0;
                    }
Код:
C:\Users\BooNii3\Foxx RP\Foxx Role Play\Server\gamemodes\foxxrp.pwn(665) : error 047: array sizes do not match, or destination array is too small
Reply


Messages In This Thread
Help? - by Luis- - 01.11.2010, 21:52
Re: Help? - by WillyP - 01.11.2010, 21:56
Re: Help? - by Luis- - 01.11.2010, 21:58
Re: Help? - by WillyP - 01.11.2010, 22:00
Re: Help? - by BMUK - 01.11.2010, 22:08
Re: Help? - by Luis- - 01.11.2010, 22:16
Re: Help? - by Brian_Furious - 01.11.2010, 23:01
Re: Help? - by Scenario - 01.11.2010, 23:05
Re: Help? - by BMUK - 02.11.2010, 10:52
Re: Help? - by Scenario - 02.11.2010, 13:03

Forum Jump:


Users browsing this thread: 1 Guest(s)