29.10.2010, 18:12
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[128], idx;
cmd = strtok(cmdtext, idx);
if(!strcmp(cmd, "/decir", true, 6))
{
GameTextForAll(cmdtext[7], tiempo, estilo);
return 1;
}
return 0;
}
EDIT: C:\Documents and Settings\------\Escritorio\server\pawno\texto.pwn(93) : error 017: undefined symbol "strtok"
C:\Documents and Settings\------\Escritorio\server\pawno\texto.pwn(93) : error 033: array must be indexed (variable "cmd")
C:\Documents and Settings\------\Escritorio\server\pawno\texto.pwn(97) : error 017: undefined symbol "tiempo"
C:\Documents and Settings\------\Escritorio\server\pawno\texto.pwn(92) : warning 203: symbol is never used: "idx"
C:\Documents and Settings\------\Escritorio\server\pawno\texto.pwn(92 -- 103) : warning 225: unreachable code
C:\Documents and Settings\------\Escritorio\server\pawno\texto.pwn(92 -- 103) : warning 217: loose indentation
C:\Documents and Settings\------Escritorio\server\pawno\texto.pwn(103) : error 029: invalid expression, assumed zero
C:\Documents and Settings\------\Escritorio\server\pawno\texto.pwn(103) : error 004: function "OnPlayerEnterVehicle" is not implemented
C:\Documents and Settings\------\Escritorio\server\pawno\texto.pwn(103) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
6 Errors.