SA-MP Forums Archive
Can't compile. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Can't compile. (/showthread.php?tid=491804)



Can't compile. - DwayneB - 01.02.2014

I am using PR-RP script and when I try to register it says that the server closed connection. Meanwhile I was searching the logs and I found this:

Код:
 [debug] Run time error 4: "Array index out of bounds"
[11:03:02] [debug]  Accessing element at index 300 past array upper bound 299
[11:03:02] [debug] AMX backtrace:
[11:03:02] [debug] #0 0000e05c in ?? () from PR-RP.amx
[11:03:02] [debug] #1 0000f3d4 in ?? () from PR-RP.amx
[11:03:02] [debug] #2 0000bf14 in public SSCANF_OnPlayerConnect () from PR-RP.amx
[11:03:02] [debug] #3 native CallLocalFunction () [00472a10] from samp-server.exe
[11:03:02] [debug] #4 00006374 in public Itter_OnPlayerConnect () from PR-RP.amx
[11:03:02] [debug] #5 native CallLocalFunction () [00472a10] from samp-server.exe
[11:03:02] [debug] #6 00005870 in public OnPlayerConnect () from PR-RP.amx
Anyone knows what seems to be the problem?



I'm trying to compile and these are the errors I get:

pawn Код:
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(26) : warning 213: tag mismatch
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(27) : warning 213: tag mismatch
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(28) : warning 213: tag mismatch
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(63) : warning 217: loose indentation
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(72) : error 006: must be assigned to an array
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(90) : error 006: must be assigned to an array
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(118) : warning 235: public function lacks forward declaration (symbol "OnConnectInit")
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(120) : warning 215: expression has no effect
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(120) : warning 215: expression has no effect
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(121) : warning 215: expression has no effect
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(121) : warning 215: expression has no effect
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(122) : warning 215: expression has no effect
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(122) : warning 215: expression has no effect
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(123) : warning 215: expression has no effect
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(123) : warning 215: expression has no effect
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(124) : warning 215: expression has no effect
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(124) : warning 215: expression has no effect
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(125) : warning 217: loose indentation
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(125) : warning 215: expression has no effect
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(126) : warning 215: expression has no effect
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(127) : warning 215: expression has no effect
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(128) : warning 215: expression has no effect
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(129) : warning 215: expression has no effect
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(130) : warning 215: expression has no effect
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(131) : warning 215: expression has no effect
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(132) : warning 215: expression has no effect
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(133) : error 029: invalid expression, assumed zero
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(133) : error 001: expected token: ")", but found ";"
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(134) : error 029: invalid expression, assumed zero
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(134) : error 001: expected token: ")", but found ";"
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(135) : error 029: invalid expression, assumed zero
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(135) : error 001: expected token: ")", but found ";"
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(136) : error 029: invalid expression, assumed zero
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(136) : warning 215: expression has no effect
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(136) : error 001: expected token: ";", but found "]"
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(136) : error 029: invalid expression, assumed zero
C:\Users\NightLuna\Desktop\New folder\gamemodes\OnConnect.pwn(136) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


12 Errors.
Код:
    new num=0,strl;
    strl=strlen(str);
    while(strl--) {
    if(str[strl]==ch) num++;
    }
    return num;
}

IsInvalid(x)
{
    if(x==95) return 0;
    if(x>64&&x<91) return 0;
    if(x>96&&x<123) return 0;
    return 1;
}

FirstSeperationLoc(str[])
{
    new strl;
    strl=strlen(str);
    while(strl--) {
    if(str[strl]=='_') return strl;
    }
    return 0;
}
And the other errors!
Код:
    SetPVarInt(playerid, "IntEnter", 1000);
    SetPVarInt(playerid, "CarKey1", SCRIPT_CARS);
    SetPVarInt(playerid, "CarKey2", SCRIPT_CARS);
    SetPVarInt(playerid, "CarKey3", SCRIPT_CARS);
    PlayerInfo[playerid][pSpeedDelay]=0;



Re: Can't compile. - DwayneB - 01.02.2014

BUMP.