0.3 Server Warnings
#1

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.
Reply
#2

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.
Reply
#3

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.
Reply
#4

How i need to redefining MAX_PICKUPS
Reply
#5

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".
Reply
#6

Tfx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)