Comando script ayuda
#9

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;
}
їComo se usa?
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.
Reply


Messages In This Thread
Comando script ayuda - by SAMPGammer - 27.10.2010, 11:28
Re: Comando script ayuda - by SuperMarioRol - 27.10.2010, 15:13
Re: Comando script ayuda - by SAMPGammer - 27.10.2010, 15:30
Re: Comando script ayuda - by SuperMarioRol - 28.10.2010, 13:01
Re: Comando script ayuda - by SAMPGammer - 28.10.2010, 17:40
Re: Comando script ayuda - by CristianTdj - 28.10.2010, 19:40
Respuesta: Re: Comando script ayuda - by MrDeath537 - 28.10.2010, 20:24
Re: Comando script ayuda - by SuperMarioRol - 28.10.2010, 20:32
Re: Comando script ayuda - by SAMPGammer - 29.10.2010, 18:12
Respuesta: Comando script ayuda - by TheChaoz - 29.10.2010, 18:53

Forum Jump:


Users browsing this thread: 2 Guest(s)