Bonjour,
voila j'ai fait cette commandes:
if(strcmp(cmdtext, "/a", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerAdmin(playerid))
{
Message = strrest(cmdtext,idx);
format(actiontext,MAX_CHATBUBBLE_LENGTH,"*Admin %s : %s",Message);
SetPlayerChatBubble(playerid,actiontext,ACTION_COLOR,30.0,10000);
SendClientMessageToAll(gris,actiontext);
}
}
return 1;
}les news:
new cmd[256];
new Message[256];
new idx;
new actiontext[MAX_CHATBUBBLE_LENGTH+1];
cmd = strtok(cmdtext, idx);
mais quand je compiles:
C:\Documents and Settings\Need\Bureau\MRC-FIN\gamemodes\mrc-dm.pwn(151) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Need\Bureau\MRC-FIN\gamemodes\mrc-dm.pwn(151) : error 033: array must be indexed (variable "cmd")
C:\Documents and Settings\Need\Bureau\MRC-FIN\gamemodes\mrc-dm.pwn(178) : error 017: undefined symbol "strrest"
C:\Documents and Settings\Need\Bureau\MRC-FIN\gamemodes\mrc-dm.pwn(178) : error 033: array must be indexed (variable "Message")
C:\Documents and Settings\Need\Bureau\MRC-FIN\gamemodes\mrc-dm.pwn(180) : error 017: undefined symbol "ACTION_COLOR"
C:\Documents and Settings\Need\Bureau\MRC-FIN\gamemodes\mrc-dm.pwn(189) : warning 217: loose indentation // resolu
C:\Documents and Settings\Need\Bureau\MRC-FIN\gamemodes\mrc-dm.pwn(256) : warning 217: loose indentation // resolu
C:\Documents and Settings\Need\Bureau\MRC-FIN\gamemodes\mrc-dm.pwn(148) : warning 203: symbol is never used: "idx"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
merci de m'aider