SA-MP Forums Archive
2 Errors that i doesn`t know solve them - 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: 2 Errors that i doesn`t know solve them (/showthread.php?tid=357087)



2 Errors that i doesn`t know solve them - RayBan - 06.07.2012

Somebody Can Tell me How solve those errors ?

C:\Users\Nafets\Desktop\pawno\include\JunkBuster.i nc(3237) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint")
C:\Users\Nafets\Desktop\E\gamemodes\ONSP.pwn(18542 ) : warning 219: local variable "mod" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size: 12552 bytes
Code size: 2384816 bytes
Data size: 10836520 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4362 cells (17448 bytes)
Total requirements:13250272 bytes

2 Warnings.


Re: 2 Errors that i doesn`t know solve them - clarencecuzz - 06.07.2012

Find OnPlayerEnterRaceCheckpoint in your script, and remove it. If it clashes with your script and is really needed for it, try adding it to the JunkBuster.inc file. Example: I have new string[256]; above OnGameModeInit, but I put another new string[18]; in another function like OnPlayerSpawn. That is why this error is happening. Find your "mod" line and delete one of them, or make it global.


Re: 2 Errors that i doesn`t know solve them - RayBan - 06.07.2012

there no OnPlayerEnterRaceCheckpoint on the GM ..... wtf ?


Re: 2 Errors that i doesn`t know solve them - clarencecuzz - 06.07.2012

Check your Junkbuster.inc file and remove OnPlayerEnterRaceCheckpoint. Make sure you do this without damaging the include.