15.09.2011, 02:08
mudei ficou assim agr deu erro no idx
linhas
erros
linhas
PHP код:
if(strcmp(cmd, "/fakechat", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
new texto[256], id, str[128];
tmp = strtok(cmd,idx);
if(!strlen(tmp)) return SendClientMessage(playerid, -1,"USO: /fakechat [ID] [TEXTO]");
id = strval(tmp);
texto = strtok(cmd, idx);
format(str, sizeof(str),"Vocк forзou %d а falar:",id);
SendClientMessage(playerid, -1, str);
format(str, sizeof(str),"%s",texto);
SendClientMessage(playerid, -1, str);
OnPlayerText(id, texto);
}
else return SendClientMessage(playerid, -1, "Vocк nгo estб logado na RCON.");
}
return 1;
}
PHP код:
C:\Documents and Settings\Antonio\Desktop\Cуpia de samp host\gamemodes\aviao.pwn(112) : error 017: undefined symbol "idx"
C:\Documents and Settings\Antonio\Desktop\Cуpia de samp host\gamemodes\aviao.pwn(115) : error 017: undefined symbol "idx"
C:\Documents and Settings\Antonio\Desktop\Cуpia de samp host\gamemodes\aviao.pwn(120) : error 004: function "OnPlayerText" is not implemented
C:\Documents and Settings\Antonio\Desktop\Cуpia de samp host\gamemodes\aviao.pwn(124) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.