Bonjour,
je vous explique mon probleme, quand je fait par exemple /gouv toto
sa affiche
|_______________________ GOUVERNEMENT _______________________|
Policier Dylan_Dean dit:
|_______________________ GOUVERNEMENT _______________________|
Et sa n'affiche pas se que je dit, je pense que cela viens de la variable message:
if(strcmp(cmd, "/gouv", true) == 0)
{
if(stats[playerid][Faction] == 1)
{
tmp = strtok(cmdtext, idx);
new message;
message = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, 0xFF0000FF, "USAGE: /Gouv [Message]");
return 1;
}
if (strlen(tmp))
{
new string[56];
new string2[56];
new string3[56];
new nomdujoueur[MAX_PLAYER_NAME];
GetPlayerName(playerid, nomdujoueur, sizeof(nomdujoueur));
format(string, sizeof(string), "|___________________ GOUVERNEMENT ___________________|");
format(string2, sizeof(string2), "Policier %s: %s",nomdujoueur, message);
format(string3, sizeof(string3), "|___________________ GOUVERNEMENT ___________________|");
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
SendClientMessageToAll(COLOR_WHITE, string2);
SendClientMessageToAll(COLOR_LIGHTBLUE, string3);
}
}
}
Merci de votre aide.