20.08.2012, 15:34
Qual erro que tб nesse comando que eu fiz?
Erros:
pawn Код:
CMD:asay(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, AMARELO, "SERVER: Uso do comando correto: /asay [Texto]");
return 1;
}
{
GetPlayerName(playerid, aName, sizeof(aName));
format(string, sizeof(string), "[GLOBAL ADIMINISTRADOR][%s]: %s",aName,cmdtext[6]);
SendClientMessageToAll(AZUL,string);
}
return 1;
}
pawn Код:
C:\Users\Gabriel\Desktop\samp03esvr_win32\gamemodes\aprendendo.pwn(1099) : error 017: undefined symbol "strtok"
C:\Users\Gabriel\Desktop\samp03esvr_win32\gamemodes\aprendendo.pwn(1099) : error 033: array must be indexed (variable "tmp")
C:\Users\Gabriel\Desktop\samp03esvr_win32\gamemodes\aprendendo.pwn(1105) : warning 217: loose indentation
C:\Users\Gabriel\Desktop\samp03esvr_win32\gamemodes\aprendendo.pwn(1106) : error 017: undefined symbol "aName"
C:\Users\Gabriel\Desktop\samp03esvr_win32\gamemodes\aprendendo.pwn(1106) : error 017: undefined symbol "aName"
C:\Users\Gabriel\Desktop\samp03esvr_win32\gamemodes\aprendendo.pwn(1106) : error 029: invalid expression, assumed zero
C:\Users\Gabriel\Desktop\samp03esvr_win32\gamemodes\aprendendo.pwn(1106) : fatal error 107: too many error messages on one line