Très bizzard !
Cela ne marche pas :s
Regarde mon code :#include <a_samp>
forward Timer();
#define COLOR_LIGHTGREEN 0x9ACD32AA
#define MAX_STRING 255
#define MAX_PLAYERS 10
#define MAX_JOUEURS 10
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print("PayDay merci à Gilux pour l'Aide à la Conception du Code ");
print("--------------------------------------\n");
SetTimer("Timer", 3600000, 1); // Toutes les heures
return 1;
}
new respect[MAX_PLAYERS];
public Timer()
{
for(new a=0; a<MAX_PLAYERS; a++)
{
GivePlayerMoney(a, 2500);
respect[a]++; // on ajoute un
if(respect[a] == 15)
{
SetPlayerScore(a,+1);
}
}
SendClientMessageToAll(COLOR_LIGHTGREEN, "|________________ Payday Reçu ________________|");
SendClientMessageToAll(COLOR_LIGHTGREEN, "Vous avez reçu 2500$ ! Mettez-les vite à la Banque");
SendClientMessageToAll(COLOR_LIGHTGREEN, "(( Nous travaillons sur le système de Payday, Vous ne recevez pas encore de Respect (C'est Pour Bientôt) ))");
return 1;
}
Erreurs (Il y en a des autres qui faut régler)C:\Users\generations\Desktop\Serveur\filterscripts\payday.pwn(5) : warning 201: redefinition of constant/macro (symbol "MAX_PLAYERS")
C:\Users\generations\Desktop\Serveur\filterscripts\payday.pwn(27) : error 029: invalid expression, assumed zero
C:\Users\generations\Desktop\Serveur\filterscripts\payday.pwn(27) : warning 215: expression has no effect
C:\Users\generations\Desktop\Serveur\filterscripts\payday.pwn(27) : error 001: expected token: ";", but found ")"
C:\Users\generations\Desktop\Serveur\filterscripts\payday.pwn(27) : error 029: invalid expression, assumed zero
C:\Users\generations\Desktop\Serveur\filterscripts\payday.pwn(27) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.