D:\BACKUP\racing_samp\pawno\include\sscanf2.inc(172) : warning 202: number of arguments does not match definition
D:\BACKUP\racing_samp\pawno\include\sscanf2.inc(172) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.
public OnGameModeInit()
{
if (!SSCANF_gInit)
{
SSCANF_Init(GetMaxPlayers(), INVALID_PLAYER_ID, MAX_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
#if defined SSCANF_OnGameModeInit
SSCANF_OnGameModeInit(); // -------------LINE 172--------------
#endif
Try removing this:
PHP Code:
|
Script[gamemodes/race.amx]: Run time error 19: "File or function is not found"
Number of vehicle models: 0
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? |
Probably the "OnGameModeInit" isn't correctly hooked on one of your includes.
Can you show what includes are you using? |
// 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(playerid, classid)
{
// Don't use these lines if it's a filterscript
ShowPlayerMarkers(1);
SetGameModeText("XpoZzA's Server");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnGameModeExit()
{
return 1;
}