SA-MP Forums Archive
0.3 Server Warnings - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 0.3 Server Warnings (/showthread.php?tid=97598)



0.3 Server Warnings - andriukas - 15.09.2009

Hello.I have crp mode and when i compyle on 0.3 pawno i have whis warnings.

Код:
C:\Documents and Settings\Rup1\Desktop\crp2\gamemodes\crp.pwn(139) : warning 201: redefinition of constant/macro (symbol "MAX_PICKUPS")
C:\Documents and Settings\Rup1\Desktop\crp2\gamemodes\crp.pwn(2370) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
C:\Documents and Settings\Rup1\Desktop\crp2\gamemodes\crp.pwn(14315) : warning 235: public function lacks forward declaration (symbol "OnPlayerInfoChange")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:      6972 bytes
Code size:      588832 bytes
Data size:     1613920 bytes
Stack/heap size:   16384 bytes; estimated max. usage=4086 cells (16344 bytes)
Total requirements: 2226108 bytes

3 Warnings.
When i compyling on 0.2x no warnings.Help plz.


Re: 0.3 Server Warnings - Popz - 15.09.2009

1: You're redefining MAX_PICKUPS
2: OnPlayerPrivmsg has been removed from 0.3; code your own /pm.
3: OnPlayerInfoChange has been removed from 0.3; it didn't do anything.


Re: 0.3 Server Warnings - Calgon - 15.09.2009

Learn how to read, the helpful 0.3 notes section CLEARLY denotes you must remove the unused (removed in 0.3) callbacks.

REMOVE THE FOLLOWING:
OnPlayerPrivmsg
OnPlayerInfoChange
MAX_PICKUPS (or rename/redefine it).

@ Popz - Sorry, posted exactly when you did.


Re: 0.3 Server Warnings - andriukas - 15.09.2009

How i need to redefining MAX_PICKUPS


Re: 0.3 Server Warnings - Calgon - 15.09.2009

Try renaming it, CTRL+H in your script, from the top, change it to MAX_S_PICKUPS or something.

Make it search for "MAX_PICKUPS" and replace with "MAX_S_PICKUPS".


Re: 0.3 Server Warnings - andriukas - 15.09.2009

Tfx