I get 26 errors when I try to compile the LARP edit of Ravens Roleplay..
Код:
C:\Documents and Settings\Customer\Desktop\New Folder\gamemodes\larp.pwn(20039) : warning 235: public function lacks forward declaration (symbol "LoadAnticheat")
C:\Documents and Settings\Customer\Desktop\New Folder\gamemodes\larp.pwn(25132) : error 021: symbol already defined: "strtok"
C:\Documents and Settings\Customer\Desktop\New Folder\gamemodes\larp.pwn(25147) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Customer\Desktop\New Folder\gamemodes\larp.pwn(26658) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Customer\Desktop\New Folder\gamemodes\larp.pwn(26718) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Customer\Desktop\New Folder\gamemodes\larp.pwn(26771) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Customer\Desktop\New Folder\gamemodes\larp.pwn(27439) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Customer\Desktop\New Folder\gamemodes\larp.pwn(27498) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Customer\Desktop\New Folder\gamemodes\larp.pwn(28179) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Customer\Desktop\New Folder\gamemodes\larp.pwn(28207) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Customer\Desktop\New Folder\gamemodes\larp.pwn(28218) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Customer\Desktop\New Folder\gamemodes\larp.pwn(28278) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Customer\Desktop\New Folder\gamemodes\larp.pwn(28547) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Customer\Desktop\New Folder\gamemodes\larp.pwn(28574) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Customer\Desktop\New Folder\gamemodes\larp.pwn(28604) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Customer\Desktop\New Folder\gamemodes\larp.pwn(28612) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Customer\Desktop\New Folder\gamemodes\larp.pwn(28646) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Customer\Desktop\New Folder\gamemodes\larp.pwn(28654) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Customer\Desktop\New Folder\gamemodes\larp.pwn(28687) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Customer\Desktop\New Folder\gamemodes\larp.pwn(28732) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Customer\Desktop\New Folder\gamemodes\larp.pwn(28795) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Customer\Desktop\New Folder\gamemodes\larp.pwn(28853) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Customer\Desktop\New Folder\gamemodes\larp.pwn(28861) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Customer\Desktop\New Folder\gamemodes\larp.pwn(28896) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Customer\Desktop\New Folder\gamemodes\larp.pwn(28904) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Customer\Desktop\New Folder\gamemodes\larp.pwn(29131) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Customer\Desktop\New Folder\gamemodes\larp.pwn(29185) : error 047: array sizes do not match, or destination array is too small
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
26 Errors.
PHP код:
public LoadAnticheat() //20039
{
new arrCoords[12][64];
new strFromFile2[128];
new File: file = fopen("LARP/anticheat.ini", io_read);
if (file)
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, ',');
AntiBunnyJump = strval(arrCoords[0]);
AntiWeaponHack = strval(arrCoords[1]);
AntiMoneyHack = strval(arrCoords[2]);
AntiInteriorHack = strval(arrCoords[3]);
AntiJetpackHack = strval(arrCoords[4]);
AntiAfk = strval(arrCoords[5]);
AntiName = strval(arrCoords[6]);
AntiDriveBy = strval(arrCoords[7]);
AntiFakeKill = strval(arrCoords[8]);
AntiHighPing = strval(arrCoords[9]);
MaxPing = strval(arrCoords[10]);
AntiSpam = strval(arrCoords[11]);
fclose(file);
}
else
{
fopen("LARP/anticheat.ini", io_write);
print("[ERROR]: anticheat.ini wasn't found in scriptfiles/LARP, Creating it NOW");
SaveAnticheat();
fclose(file);
}
return 1;
}
--------------------
strtok(const string[], &index)
{ //25132
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}