Errors After Mixing a filterscript and a gamemode
#1

hello guys .
i mixed jVIP filterscript And Battleship gamemode into a Gamemode .
and after that i got these erros :
Код:
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(153) : warning 213: tag mismatch
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(154) : error 017: undefined symbol "INI_SetTag"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(155) : error 035: argument type mismatch (argument 1)
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(156) : error 035: argument type mismatch (argument 1)
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(157) : warning 202: number of arguments does not match definition
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(153) : warning 204: symbol is assigned a value that is never used: "acc"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(165) : warning 213: tag mismatch
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(166) : error 017: undefined symbol "INI_SetTag"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(167) : error 035: argument type mismatch (argument 1)
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(168) : error 035: argument type mismatch (argument 1)
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(169) : warning 202: number of arguments does not match definition
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(165) : warning 204: symbol is assigned a value that is never used: "file"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(176) : error 017: undefined symbol "INI_Int"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(1483) : error 017: undefined symbol "INI_ParseFile"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(1483) : warning 215: expression has no effect
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(1483) : error 029: invalid expression, assumed zero
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(1483) : error 017: undefined symbol "extra"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(1483) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


11 Errors.
Battleship Gamemode Is Using SII But jVIP Is Using Y_INI
Reply
#2

Include y_ini to the mode.

pawn Код:
#include < YSI\y_ini >
Reply
#3

You should download Y_INI and
pawn Код:
#include <YSI\y_ini>
at the script

Then post the code with the errors if there any..
Reply
#4

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Include y_ini to the mode.

pawn Код:
#include < YSI\y_ini >
Quote:
Originally Posted by xVIP3Rx
Посмотреть сообщение
You should download Y_INI and
pawn Код:
#include <YSI\y_ini>
at the script

Then post the code with the errors if there any..
i Included <YSI\y_ini> and i got these new erros :
Код:
D:\Downloads\samp03x_svr_R2_win32\pawno\include\YSI\y_ini.inc(695) : error 025: function heading differs from prototype
D:\Downloads\samp03x_svr_R2_win32\pawno\include\YSI\y_ini.inc(696) : error 021: symbol already defined: "INI_Open"
D:\Downloads\samp03x_svr_R2_win32\pawno\include\YSI\y_ini.inc(710) : warning 213: tag mismatch
D:\Downloads\samp03x_svr_R2_win32\pawno\include\YSI\y_ini.inc(729) : warning 213: tag mismatch
D:\Downloads\samp03x_svr_R2_win32\pawno\include\YSI\y_ini.inc(743) : error 025: function heading differs from prototype
D:\Downloads\samp03x_svr_R2_win32\pawno\include\YSI\y_ini.inc(744) : error 021: symbol already defined: "INI_Close"
D:\Downloads\samp03x_svr_R2_win32\pawno\include\YSI\y_ini.inc(748) : warning 209: function "INI_Close" should return a value
D:\Downloads\samp03x_svr_R2_win32\pawno\include\YSI\y_ini.inc(1030) : error 025: function heading differs from prototype
D:\Downloads\samp03x_svr_R2_win32\pawno\include\YSI\y_ini.inc(1031) : error 021: symbol already defined: "INI_RemoveEntry"
D:\Downloads\samp03x_svr_R2_win32\pawno\include\YSI\y_ini.inc(1051) : error 025: function heading differs from prototype
D:\Downloads\samp03x_svr_R2_win32\pawno\include\YSI\y_ini.inc(1052) : error 021: symbol already defined: "INI_WriteString"
D:\Downloads\samp03x_svr_R2_win32\pawno\include\YSI\y_ini.inc(1055) : warning 209: function "INI_WriteString" should return a value
D:\Downloads\samp03x_svr_R2_win32\pawno\include\YSI\y_ini.inc(1070) : error 025: function heading differs from prototype
D:\Downloads\samp03x_svr_R2_win32\pawno\include\YSI\y_ini.inc(1071) : error 021: symbol already defined: "INI_WriteInt"
D:\Downloads\samp03x_svr_R2_win32\pawno\include\YSI\y_ini.inc(1077) : warning 209: function "INI_WriteInt" should return a value
D:\Downloads\samp03x_svr_R2_win32\pawno\include\YSI\y_ini.inc(1188) : error 025: function heading differs from prototype
D:\Downloads\samp03x_svr_R2_win32\pawno\include\YSI\y_ini.inc(1189) : error 021: symbol already defined: "INI_WriteFloat"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(154) : warning 213: tag mismatch
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(156) : error 035: argument type mismatch (argument 1)
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(157) : error 035: argument type mismatch (argument 1)
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(158) : warning 202: number of arguments does not match definition
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(166) : warning 213: tag mismatch
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(168) : error 035: argument type mismatch (argument 1)
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(169) : error 035: argument type mismatch (argument 1)
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(170) : warning 202: number of arguments does not match definition
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(2821) : error 017: undefined symbol "ClientMessage"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(2837) : error 017: undefined symbol "ClientMessage"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(2869) : error 017: undefined symbol "ClientMessage"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(2952) : error 017: undefined symbol "ClientMessage"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(2968) : error 017: undefined symbol "ClientMessage"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(2989) : error 017: undefined symbol "ClientMessage"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(3019) : error 017: undefined symbol "ClientMessage"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(3035) : error 017: undefined symbol "ClientMessage"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


24 Errors.
Gamemode Attached ...
Reply
#5

Do not use y_ini and SII together. Both use similar names to some functions like INI_Open and INI_Close.

y_ini is recommended so get rid of that SII.
Reply
#6

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Do not use y_ini and SII together. Both use similar names to some functions like INI_Open and INI_Close.

y_ini is recommended so get rid of that SII.
when just y_ini is included i got these errors :
Код:
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(492) : error 017: undefined symbol "INI_ReadInt"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(493) : error 017: undefined symbol "INI_ReadInt"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(494) : error 017: undefined symbol "INI_ReadInt"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(496) : error 017: undefined symbol "INI_ReadInt"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(497) : error 017: undefined symbol "INI_ReadInt"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(498) : error 017: undefined symbol "INI_ReadInt"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(499) : error 017: undefined symbol "INI_ReadInt"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(500) : warning 202: number of arguments does not match definition
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(513) : error 035: argument type mismatch (argument 1)
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(514) : error 035: argument type mismatch (argument 1)
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(515) : error 035: argument type mismatch (argument 1)
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(516) : error 035: argument type mismatch (argument 1)
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(517) : error 035: argument type mismatch (argument 1)
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(518) : error 035: argument type mismatch (argument 1)
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(519) : error 035: argument type mismatch (argument 1)
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(520) : error 017: undefined symbol "INI_Save"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(521) : warning 202: number of arguments does not match definition
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(512) : warning 204: symbol is assigned a value that is never used: "score"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(2821) : error 017: undefined symbol "ClientMessage"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(2837) : error 017: undefined symbol "ClientMessage"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(2869) : error 017: undefined symbol "ClientMessage"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(2952) : error 017: undefined symbol "ClientMessage"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(2968) : error 017: undefined symbol "ClientMessage"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(2989) : error 017: undefined symbol "ClientMessage"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(3019) : error 017: undefined symbol "ClientMessage"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(3035) : error 017: undefined symbol "ClientMessage"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


23 Errors.
and when SII Just includes :

Код:
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(154) : warning 213: tag mismatch
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(155) : error 017: undefined symbol "INI_SetTag"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(156) : error 035: argument type mismatch (argument 1)
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(157) : error 035: argument type mismatch (argument 1)
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(158) : warning 202: number of arguments does not match definition
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(154) : warning 204: symbol is assigned a value that is never used: "acc"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(166) : warning 213: tag mismatch
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(167) : error 017: undefined symbol "INI_SetTag"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(168) : error 035: argument type mismatch (argument 1)
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(169) : error 035: argument type mismatch (argument 1)
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(170) : warning 202: number of arguments does not match definition
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(166) : warning 204: symbol is assigned a value that is never used: "file"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(177) : error 017: undefined symbol "INI_Int"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(1484) : error 017: undefined symbol "INI_ParseFile"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(1484) : warning 215: expression has no effect
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(1484) : error 029: invalid expression, assumed zero
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(1484) : error 017: undefined symbol "extra"
D:\Downloads\samp03x_svr_R2_win32\gamemodes\battleship.pwn(1484) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


11 Errors.
Reply
#7

The one mode uses SII and the other one uses y_ini. Like I said, you cannot use both systems for saving so you should convert the one so both uses the same.
Reply
#8

I took it and rescripted it for y_ini, Here you go, Also you was using foreach in the wrong way
You typed
pawn Код:
foreach(new id : Player)
Maybe it was an old usage but it should be
pawn Код:
foreach(Player, id)
Reply
#9

Quote:
Originally Posted by xVIP3Rx
Посмотреть сообщение
Also you was using foreach in the wrong way
You typed
pawn Код:
foreach(new id : Player)
Maybe it was an old usage but it should be
pawn Код:
foreach(Player, id)
Actually
pawn Код:
foreach(Player, id)
is for the older versions, it must be:
pawn Код:
foreach(new id : Player)
A quote from foreach's thread:

Quote:
Originally Posted by ******
Посмотреть сообщение
Introduction

foreach replaces some* loops (normally the main player loop) with a faster, more efficient loop. Example:

pawn Код:
for (new i = 0; i != MAX_PLAYERS; ++i)
{
    if (IsPlayerConnected(i))
    {
        printf("Player %d is connected", i);
    }
}
Simply becomes:

pawn Код:
foreach (new i : Player)
{
    printf("Player %d is connected", i);
}
Reply
#10

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Actually
pawn Код:
foreach(Player, id)
IS for the older versions, it must be:
pawn Код:
foreach(new id : Player)
Wasn't scripting at that time ,
I encountered that while scripting it so just warned him, If he is using the old foreach then he should update it, or change what I changed again..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)