Comando incompleto / erroneo
#5

Quote:
Originally Posted by OneBlaack
Посмотреть сообщение
Код:
CMD:jetpack(playerid, params[])
{
    new id, string[128], string2[128];
    if(!IsPlayerAdmin(playerid)) return 0;
    {
        if(sscanf(params,"ii",id)) return SendClientMessage(playerid,COLOR_RED,"[ERROR]: /jetpack [playerID]");
        else
        new nombre[MAX_PLAYER_NAME];
         GetPlayerName(id, nombre, sizeof(nombre)); 
            SetPlayerSpecialAction(id,SPECIAL_ACTION_USEJETPACK);
        format(string, sizeof(string),"Le diste a %s un jetpack!", nombre);
        SendClientMessage(playerid, COLOR_GREEN, string);
        format(string2 ,sizeof(string2),"%s te dio un jetpack!", id);
        SendClientMessage(id, COLOR_GREEN, string2);
    }
    return 1;
}
Prueba
Код:
D:\Documents and Settings\Administrador\Mis documentos\Descargas\samp03x_svr_RC1_win32\filterscripts\carspawn.pwn(368) : error 003: declaration of a local variable must appear in a compound block
D:\Documents and Settings\Administrador\Mis documentos\Descargas\samp03x_svr_RC1_win32\filterscripts\carspawn.pwn(368) : error 017: undefined symbol "nombre"
D:\Documents and Settings\Administrador\Mis documentos\Descargas\samp03x_svr_RC1_win32\filterscripts\carspawn.pwn(368) : warning 215: expression has no effect
D:\Documents and Settings\Administrador\Mis documentos\Descargas\samp03x_svr_RC1_win32\filterscripts\carspawn.pwn(368) : error 001: expected token: ";", but found "]"
D:\Documents and Settings\Administrador\Mis documentos\Descargas\samp03x_svr_RC1_win32\filterscripts\carspawn.pwn(368) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Linea 368
PHP код:
new nombre[MAX_PLAYER_NAME]; 
Reply


Messages In This Thread
Comando incompleto / erroneo - by benjas09 - 29.01.2013, 23:22
Respuesta: Comando incompleto / erroneo - by OneBlaack - 29.01.2013, 23:30
Respuesta: Comando incompleto / erroneo - by benjas09 - 29.01.2013, 23:31
Respuesta: Comando incompleto / erroneo - by OneBlaack - 29.01.2013, 23:33
Respuesta: Comando incompleto / erroneo - by benjas09 - 29.01.2013, 23:34
Respuesta: Comando incompleto / erroneo - by OneBlaack - 29.01.2013, 23:43
Re: Comando incompleto / erroneo - by Daniel-92 - 29.01.2013, 23:51
Respuesta: Comando incompleto / erroneo - by benjas09 - 29.01.2013, 23:51
Re: Comando incompleto / erroneo - by ThePhenix - 30.01.2013, 00:04
Respuesta: Re: Comando incompleto / erroneo - by benjas09 - 30.01.2013, 00:23

Forum Jump:


Users browsing this thread: 1 Guest(s)