Merci de ton aide, j'ai effectivement trouvé mon bonheur sur un forum anglais explicant le strcmp.
Il reste néanmoins un problème : Lorsque j'ouvre mon filterscript appelé "Flymode", le GM "Alex" ne fonctionne plus correctement.
En effet, il ne reste plus qu'une commande et le motd qui fonctionne. Toutes les autres commandes ne font rien.
J'ai bien vérifier en enlevant le filterscript à nouveau et le GM re-fonctionne parfaitement. Je précise que dans tout les cas, le FS fonctionne parfaitement.
Voici mon server.cfg :
echo Executing Server Config...
lanmode 0
rcon_password ***
maxplayers 3
port 7777
hostname [FR] SA-MP 0.3e Server
gamemode0 Alex 1
filterscripts gl_actions gl_property gl_realtime gl_mapicon ls_elevator test_cmds ls_mall attachments flymode
announce 0
query 1
weburl [url=http://www.sa-mp.com]www.sa-mp.com[/url]
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:%S]
Voici le début de mon FS :
#include <a_samp>
#include <file>
#include <a_players>
#define FLYMODESPEED GetPVarFloat(playerid, "FlymodeSpeed")
new PlayerToetsen, OmhoogLaag, LinksRechts;
new Float:x,Float:y,Float:z;
new Float:x2, Float:y2, Float:z2;
public OnFilterScriptInit()
{
print("[FS] >> Flymode loaded & enable. <c>");
return 1;
}
public OnFilterScriptExit()
{
print("[FS] >> Flymode unloaded & disable. <c>");
return 1;
}
Voici celui de mon GM :
#include <a_samp>
#include <a_players>
#include <a_vehicles>
#include <j_achievements> //http://forum.sa-mp.com/showthread.php?t=175745
#define BLINK_RATE 400 // This is the rate of flash (also rate of timer in milliseconds, same for pflash)
#define PFLASH_RATE 300 // This controls the rate of flash for public vehicle lights, works for all police, fire, ambulance vehicles
#define LIGHT_KEY KEY_SUBMISSION // Set this to whatever key you want to turn the lights on
#undef MAX_PLAYERS
#define MAX_PLAYERS 50
// Macro from SAMP wiki Credits to the author
#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
//==============================================================================
forward strtok(const string[], &index, const seperator[] = " ");
forward strcpy(dst[], src[]);
forward stock strrest(const string[], &index);
forward UpdatePlayerPos();
new Float:x, Float:y, Float:z;
new Float:ang;
new stop[MAX_PLAYERS];
new Menu:menuafk;
new playerafk[MAX_PLAYER_NAME]; // Pour le /afk et le menu correspondant
new grille;
new BlinkTime[MAX_PLAYERS];
main()
{
print("\n----------------------------------");
print("Lancement du serveur...");
print("----------------------------------\n");
}
public OnGameModeInit()
{
SetGameModeText("UMVRP");
menuafk = CreateMenu("~w~ Menu AFK",1,125,150,300);
if(IsValidMenu(menuafk))
{
SetMenuColumnHeader(menuafk , 0, "Choisissez une option :");
AddMenuItem(menuafk ,0,"Retour au jeu");
AddMenuItem(menuafk ,0,"Quitter le jeu");
}
return 1;
}
public OnGameModeExit()
{
return 1;
}
J'aurais besoin de votre aide s'il vous plait. :wall