Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Rodrigo on August 29, 2012, 05:13:14 pm

Title: [HELP]Troubles in compiling Gups1.16
Post by: Rodrigo on August 29, 2012, 05:13:14 pm
Hello!

I've just tried to compile GUPS1.16.pwn with Pawno and it gives me always the same warnings/errors:

Code: [Select]
(8) : error 018: initialization data exceeds declared size
(100) : warning 235: public function lacks forward declaration (symbol "OnFilterScriptInit")
105) : warning 235: public function lacks forward declaration (symbol "OnPlayerVersion")
(111) : warning 235: public function lacks forward declaration (symbol "OnPlayerConnect")
(178) : warning 235: public function lacks forward declaration (symbol "OnPlayerDisconnect")
(193) : warning 235: public function lacks forward declaration (symbol "OnPickedUp")
(216) : warning 235: public function lacks forward declaration (symbol "OnPlayerSpawn")
(240) : warning 235: public function lacks forward declaration (symbol "OnPlayerDeath")
(306) : warning 235: public function lacks forward declaration (symbol "OnPlayerRequestClass")
(315) : warning 235: public function lacks forward declaration (symbol "OnGameModeInit")
(351) : warning 217: loose indentation
(353) : warning 217: loose indentation
(358) : warning 235: public function lacks forward declaration (symbol "OnPlayerCommandText")
(367) : warning 217: loose indentation
(372) : warning 217: loose indentation
(373) : warning 217: loose indentation
(392) : warning 217: loose indentation
(397) : warning 217: loose indentation

I only changed the name of the game mode... Or tried to change it. :/
Title: Re: [HELP]Troubles in compiling Gups1.16
Post by: cocky on August 30, 2012, 09:25:46 am
[pawn](8) : error 018: initialization data exceeds declared size[/pawn]

Thats because the text length exceeds the declared cells length and the warnings are caused because you are using a old version of pawno.

[pawn]static szGameModeName[ 11 ] = "GUPS v1.16";[/pawn]

Change the cells used length according to the length of your text eg

[pawn]static szGameModeName[ 12 ] = "RockS v1.57a"; [/pawn]

Note: I am not sure about these because i forgot pawn.