SA-MP Forums Archive
Help please - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Help please (/showthread.php?tid=460303)



Help please - PrinceEpilogue - 27.08.2013

Код:
C:\Documents and Settings\smouha\Desktop\RG\gamemodes\larp.pwn(6899) : warning 209: function "Streamer_OnPlayerDisconnect" should return a value
C:\Documents and Settings\smouha\Desktop\RG\gamemodes\larp.pwn(25115) : error 021: symbol already defined: "strtok"
C:\Documents and Settings\smouha\Desktop\RG\gamemodes\larp.pwn(25130) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\smouha\Desktop\RG\gamemodes\larp.pwn(26655) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\smouha\Desktop\RG\gamemodes\larp.pwn(26715) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\smouha\Desktop\RG\gamemodes\larp.pwn(26768) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\smouha\Desktop\RG\gamemodes\larp.pwn(27436) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\smouha\Desktop\RG\gamemodes\larp.pwn(27495) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\smouha\Desktop\RG\gamemodes\larp.pwn(28176) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\smouha\Desktop\RG\gamemodes\larp.pwn(28204) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\smouha\Desktop\RG\gamemodes\larp.pwn(28215) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\smouha\Desktop\RG\gamemodes\larp.pwn(28275) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\smouha\Desktop\RG\gamemodes\larp.pwn(28544) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\smouha\Desktop\RG\gamemodes\larp.pwn(28571) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\smouha\Desktop\RG\gamemodes\larp.pwn(28601) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\smouha\Desktop\RG\gamemodes\larp.pwn(28609) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\smouha\Desktop\RG\gamemodes\larp.pwn(28643) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\smouha\Desktop\RG\gamemodes\larp.pwn(28651) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\smouha\Desktop\RG\gamemodes\larp.pwn(28684) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\smouha\Desktop\RG\gamemodes\larp.pwn(28729) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\smouha\Desktop\RG\gamemodes\larp.pwn(28792) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\smouha\Desktop\RG\gamemodes\larp.pwn(28850) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\smouha\Desktop\RG\gamemodes\larp.pwn(28858) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\smouha\Desktop\RG\gamemodes\larp.pwn(28893) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\smouha\Desktop\RG\gamemodes\larp.pwn(28901) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\smouha\Desktop\RG\gamemodes\larp.pwn(29128) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\smouha\Desktop\RG\gamemodes\larp.pwn(29182) : 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.
Help me please in these errors
Thx


Re: Help please - Ha$H_Sexyboy - 28.08.2013

WRONG SECTION post this on "Scripting Help"


Re: Help please - Konstantinos - 28.08.2013

1) In OnPlayerDisconnect, return a value (1) at the bottom:
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    // some code
    return 1;
}
2) Goto line 25115 and remove strtok function, it exists already.

3) I cannot help you without more information about it. Try changing the size of the array [ ] to a bigger one.