Bonjour, j'ai besoin d'aide sur un bout de script et le problème étant que je ne sais pas comment envoyer un message à tous les joueurs, j'ai essayé le "i" et voila l'erreur.
{
new plname[MAX_PLAYER_NAME];
new i[256]
new astring[256];
GetPlayerName(playerid, plname, sizeof(plname));
format(astring, sizeof(astring), "%s a rejoint le serveur.",plname);
SendClientMessage(i, COLOR_RED, astring);
if(Security != 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "Regles NON RESPECTEES, KICK !");
Kick(playerid);
format(astring, sizeof(astring), "%s a quitté le serveur (Kické).",plname);
SendClientMessage(i, COLOR_RED, astring);
return 1;
}
new namestring = strfind(plname, "_", true);
if(namestring == -1)
{
SendClientMessage(playerid, COLOR_YELLOW2, "Immigration Department: Votre nom est incorrect.");
SendClientMessage(playerid, COLOR_YELLOW2, "Votre nom doit être au format Prénom_Nom. Ex. John_Smith");
Kick(playerid);
format(astring, sizeof(astring), "%s a quitté le serveur (Kické).",plname);
SendClientMessage(i, COLOR_RED, astring);
return 1;
}
Erreur :
C:\Documents and Settings\Administrateur\Bureau\MINEARP SERV 0.3x\gamemodes\warp.pwn(2876) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Administrateur\Bureau\MINEARP SERV 0.3x\gamemodes\warp.pwn(2882) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Administrateur\Bureau\MINEARP SERV 0.3x\gamemodes\warp.pwn(2892) : error 035: argument type mismatch (argument 1)