Unknown errors in my code(server still compiles).
#1

I have these following errors in my code when I'm trying to compile my main code and not the include.
I've started getting these errors after I cleaned my code from trash...
These are the errors:
PHP Code:
D:\BACKUP\racing_samp\pawno\include\sscanf2.inc(172) : warning 202number of arguments does not match definition
D
:\BACKUP\racing_samp\pawno\include\sscanf2.inc(172) : warning 202number of arguments does not match definition
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
2 Warnings

Reply
#2

Can u show line 169-176 from sscanf2.inc?
Reply
#3

PHP Code:
public OnGameModeInit()
    {
        if (!
SSCANF_gInit)
        {
            
SSCANF_Init(GetMaxPlayers(), INVALID_PLAYER_IDMAX_PLAYER_NAME);
            
SSCANF_gInit true;
        }
        
#if defined SSCANF_OnGameModeInit
            
SSCANF_OnGameModeInit(); // -------------LINE 172--------------
        #endif
        
return 1;
    }
    
    
#if defined _ALS_OnGameModeInit
        #undef OnGameModeInit
    #else
        #define _ALS_OnGameModeInit
    #endif
    #define OnGameModeInit SSCANF_OnGameModeInit
    #if defined SSCANF_OnGameModeInit
        
forward SSCANF_OnGameModeInit();
    
#endif 
Reply
#4

Try removing this:
PHP Code:
#if defined SSCANF_OnGameModeInit
            
SSCANF_OnGameModeInit(); // -------------LINE 172--------------
        #endif 
Also are you sure your inc and plugins are up to date?
Reply
#5

Last time I've updated it was like a year ago... Was there any update since?
Reply
#6

Quote:
Originally Posted by jasperschellekens
View Post
Try removing this:
PHP Code:
#if defined SSCANF_OnGameModeInit
            
SSCANF_OnGameModeInit(); // -------------LINE 172--------------
        #endif 
Also are you sure your inc and plugins are up to date?
That's a very, very bad advice.

OT: You should first update ur plugins (w/ includes) and then, let us know if it works.
Reply
#7

I have downloaded the latest version from here and I still have those errors, and now my server has a runtime error and won't start properly...
PHP Code:
Script[gamemodes/race.amx]: Run time error 19"File or function is not found"
Number of vehicle models
Reply
#8

Quote:
Originally Posted by Dayrion
View Post
That's a very, very bad advice.

OT: You should first update ur plugins (w/ includes) and then, let us know if it works.
OK, I've updated it now, it did not work before because on the server.cfg I wrote sscanf2 instead of sscanf(in the plugins line)
I still have those errors on my compiler...
Note: before I cleaned my code I did not have those errors, maybe I have deleted something by an accident?
Reply
#9

Quote:
Originally Posted by XpoZzA
View Post
OK, I've updated it now, it did not work before because on the server.cfg I wrote sscanf2 instead of sscanf(in the plugins line)
I still have those errors on my compiler...
Note: before I cleaned my code I did not have those errors, maybe I have deleted something by an accident?
Probably the "OnGameModeInit" isn't correctly hooked on one of your includes.
Can you show what includes are you using?
Reply
#10

Quote:
Originally Posted by Dayrion
View Post
Probably the "OnGameModeInit" isn't correctly hooked on one of your includes.
Can you show what includes are you using?
ofc.

PHP Code:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#include <streamer>
#define weapons 4670
new str[1000];
//#if defined FILTERSCRIPT
//#endif
main()
{
    print(
"\n----------------------------------");
    print(
" Welcome To My Chasing Server");
    print(
"----------------------------------\n");
}
#pragma tabsize 0
public OnGameModeInit(playeridclassid)
{
    
// Don't use these lines if it's a filterscript
    
ShowPlayerMarkers(1);
    
SetGameModeText("XpoZzA's Server");
    
AddPlayerClass(01958.37831343.157215.3746269.1425000000);
    return 
1;
}
public 
OnGameModeExit()
{
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)