01.11.2010, 21:52
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