por que esos errores??
#1

porq tengo esos errores y como solucionarlos......

C:\Documents and Settings\clao\Escritorio\PROYECTO_GM\GM EN PROCESO\GM EN PROCESO.pwn(42) : error 010: invalid function or declaration
C:\Documents and Settings\clao\Escritorio\PROYECTO_GM\GM EN PROCESO\GM EN PROCESO.pwn(43) : error 010: invalid function or declaration
C:\Documents and Settings\clao\Escritorio\PROYECTO_GM\GM EN PROCESO\GM EN PROCESO.pwn(44) : error 010: invalid function or declaration
C:\Documents and Settings\clao\Escritorio\PROYECTO_GM\GM EN PROCESO\GM EN PROCESO.pwn(46) : error 010: invalid function or declaration
C:\Documents and Settings\clao\Escritorio\PROYECTO_GM\GM EN PROCESO\GM EN PROCESO.pwn(49) : error 010: invalid function or declaration
C:\Documents and Settings\clao\Escritorio\PROYECTO_GM\GM EN PROCESO\GM EN PROCESO.pwn(52) : error 010: invalid function or declaration
C:\Documents and Settings\clao\Escritorio\PROYECTO_GM\GM EN PROCESO\GM EN PROCESO.pwn(55) : error 010: invalid function or declaration
C:\Documents and Settings\clao\Escritorio\PROYECTO_GM\GM EN PROCESO\GM EN PROCESO.pwn(60) : error 010: invalid function or declaration
C:\Documents and Settings\clao\Escritorio\PROYECTO_GM\GM EN PROCESO\GM EN PROCESO.pwn(69) : error 010: invalid function or declaration
C:\Documents and Settings\clao\Escritorio\PROYECTO_GM\GM EN PROCESO\GM EN PROCESO.pwn(72) : error 010: invalid function or declaration
C:\Documents and Settings\clao\Escritorio\PROYECTO_GM\GM EN PROCESO\GM EN PROCESO.pwn(73) : error 010: invalid function or declaration
C:\Documents and Settings\clao\Escritorio\PROYECTO_GM\GM EN PROCESO\GM EN PROCESO.pwn(79) : error 010: invalid function or declaration
C:\Documents and Settings\clao\Escritorio\PROYECTO_GM\GM EN PROCESO\GM EN PROCESO.pwn(83) : error 054: unmatched closing brace ("}")
C:\Documents and Settings\clao\Escritorio\PROYECTO_GM\GM EN PROCESO\GM EN PROCESO.pwn(84) : error 010: invalid function or declaration
C:\Documents and Settings\clao\Escritorio\PROYECTO_GM\GM EN PROCESO\GM EN PROCESO.pwn(89) : error 010: invalid function or declaration
Reply
#2

Quote:
Originally Posted by cesar_******
Посмотреть сообщение
porq tengo esos errores y como solucionarlos......

C:\Documents and Settings\clao\Escritorio\PROYECTO_GM\GM EN PROCESO\GM EN PROCESO.pwn(42) : error 010: invalid function or declaration
C:\Documents and Settings\clao\Escritorio\PROYECTO_GM\GM EN PROCESO\GM EN PROCESO.pwn(43) : error 010: invalid function or declaration
C:\Documents and Settings\clao\Escritorio\PROYECTO_GM\GM EN PROCESO\GM EN PROCESO.pwn(44) : error 010: invalid function or declaration
C:\Documents and Settings\clao\Escritorio\PROYECTO_GM\GM EN PROCESO\GM EN PROCESO.pwn(46) : error 010: invalid function or declaration
C:\Documents and Settings\clao\Escritorio\PROYECTO_GM\GM EN PROCESO\GM EN PROCESO.pwn(49) : error 010: invalid function or declaration
C:\Documents and Settings\clao\Escritorio\PROYECTO_GM\GM EN PROCESO\GM EN PROCESO.pwn(52) : error 010: invalid function or declaration
C:\Documents and Settings\clao\Escritorio\PROYECTO_GM\GM EN PROCESO\GM EN PROCESO.pwn(55) : error 010: invalid function or declaration
C:\Documents and Settings\clao\Escritorio\PROYECTO_GM\GM EN PROCESO\GM EN PROCESO.pwn(60) : error 010: invalid function or declaration
C:\Documents and Settings\clao\Escritorio\PROYECTO_GM\GM EN PROCESO\GM EN PROCESO.pwn(69) : error 010: invalid function or declaration
C:\Documents and Settings\clao\Escritorio\PROYECTO_GM\GM EN PROCESO\GM EN PROCESO.pwn(72) : error 010: invalid function or declaration
C:\Documents and Settings\clao\Escritorio\PROYECTO_GM\GM EN PROCESO\GM EN PROCESO.pwn(73) : error 010: invalid function or declaration
C:\Documents and Settings\clao\Escritorio\PROYECTO_GM\GM EN PROCESO\GM EN PROCESO.pwn(79) : error 010: invalid function or declaration
C:\Documents and Settings\clao\Escritorio\PROYECTO_GM\GM EN PROCESO\GM EN PROCESO.pwn(83) : error 054: unmatched closing brace ("}")
C:\Documents and Settings\clao\Escritorio\PROYECTO_GM\GM EN PROCESO\GM EN PROCESO.pwn(84) : error 010: invalid function or declaration
C:\Documents and Settings\clao\Escritorio\PROYECTO_GM\GM EN PROCESO\GM EN PROCESO.pwn(89) : error 010: invalid function or declaration
Perdуn por creerme alguien superior, pero, postea el codigo con [pawn] [/ pawn] (pegado) y las lineas del error en las que da el error
Reply
#3

BUENO YES ERES SUPERIOR POR DOS ESTRELLAS XDD..

EN TODAS ESAS LINEAS ME DAN LOS ERRORES Y EN ALGUNAS NO


pawn Код:
enum Jugador
{
   Juegos
}

new JugadorInfo["MAX_PLAYERS"],[Jugador];

public "OnPlayerCommandText"(playerid, cmdtext[])
{
    if(JugadorInfo[playerid][Juegos] == 1)
    {
    SendClientMessage(playerid,COLOR_RED, "*Estas en minijuego no puedes usar cmds usa /kill si quieres salir o espera que te maten."); //Esto bloqueara los comandos cuando este en minijuego
    return 1;
    }
{
if("strcmp"("cmdtext", "/dmsniper", true) == 0)
      {
        "SetPlayerPos"(playerid,762.0065,5.4993,1000.7112); //tus coordenadas, tambien puedes hacer randomspawn
        "SetPlayerArmour"(playerid, 100.0);
        "GivePlayerWeapon"(playerid, 34, 3000);
        "SetPlayerVirtualWorld"(playerid,1);
        JugadorInfo[playerid][Juegos] = 1;
        return 1;
      }
return 0;
}

public "OnPlayerDeath"(playerid, killerid, reason)
{
    JugadorInfo[playerid][Juegos] = 0;
    "SetPlayerVirtualWorld"(playerid,0);
    return 1;}
Reply
#4

Quote:
Originally Posted by cesar_******
Посмотреть сообщение
BUENO YES ERES SUPERIOR POR DOS ESTRELLAS XDD..

EN TODAS ESAS LINEAS ME DAN LOS ERRORES Y EN ALGUNAS NO


pawn Код:
enum Jugador
{
   Juegos
}

new JugadorInfo["MAX_PLAYERS"],[Jugador];

public "OnPlayerCommandText"(playerid, cmdtext[])
{
    if(JugadorInfo[playerid][Juegos] == 1)
    {
    SendClientMessage(playerid,COLOR_RED, "*Estas en minijuego no puedes usar cmds usa /kill si quieres salir o espera que te maten."); //Esto bloqueara los comandos cuando este en minijuego
    return 1;
    }
{
if("strcmp"("cmdtext", "/dmsniper", true) == 0)
      {
        "SetPlayerPos"(playerid,762.0065,5.4993,1000.7112); //tus coordenadas, tambien puedes hacer randomspawn
        "SetPlayerArmour"(playerid, 100.0);
        "GivePlayerWeapon"(playerid, 34, 3000);
        "SetPlayerVirtualWorld"(playerid,1);
        JugadorInfo[playerid][Juegos] = 1;
        return 1;
      }
return 0;
}

public "OnPlayerDeath"(playerid, killerid, reason)
{
    JugadorInfo[playerid][Juegos] = 0;
    "SetPlayerVirtualWorld"(playerid,0);
    return 1;}
Bueno, no te puedo ayudar en todas, no soy muy pro, pero aquн va unos fixes (espero):

pawn Код:
enum Jugador
{
   Juegos
}

new JugadorInfo["MAX_PLAYERS"],[Jugador];

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(JugadorInfo[playerid][Juegos] == 1)
    {
    SendClientMessage(playerid,COLOR_RED, "*Estas en minijuego no puedes usar cmds usa /kill si quieres salir o espera que te maten."); //Esto bloqueara los comandos cuando este en minijuego
    return 1;
    }

     if(!strcmp"(cmdtext, "/dmsniper", true) == 0)
     {
         SetPlayerPos(playerid,762.0065,5.4993,1000.7112); //tus coordenadas, tambien puedes hacer randomspawn
         SetPlayerArmour(playerid, 100.0);
         GivePlayerWeapon(playerid, 34, 3000);
         SetPlayerVirtualWorld(playerid,1);
         JugadorInfo[playerid][Juegos] = 1;
         return 1;
     }
return 0;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    JugadorInfo[playerid][Juegos] = 0;
    SetPlayerVirtualWorld"
(playerid,0);
    return 1;
}
Reply
#5

pawn Код:
enum Jugador
{
   Juegos
};

new JugadorInfo[MAX_PLAYERS][Jugador];

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(JugadorInfo[playerid][Juegos] == 1) return SendClientMessage(playerid, COLOR_RED, "*Estas en minijuego no puedes usar cmds usa /kill si quieres salir o espera que te maten.");

    if(strcmp(cmdtext, "/dmsniper", true) == 0)
    {
        SetPlayerPos(playerid,762.0065,5.4993,1000.7112);
        SetPlayerArmour(playerid, 100.0);
        GivePlayerWeapon(playerid, 34, 3000);
        SetPlayerVirtualWorld(playerid,1);
        JugadorInfo[playerid][Juegos] = 1;
        return 1;
    }
     
    return 0;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    JugadorInfo[playerid][Juegos] = 0;
    SetPlayerVirtualWorld(playerid,0);
    return 1;
}
Reply
#6

eh... xq usas comillas para los publics y funciones?
pawn Код:
new bool:Juegos[MAX_PLAYERS];

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(Juegos[playerid])return SendClientMessage(playerid,COLOR_RED, "*Estas en minijuego no puedes usar cmds usa /kill si quieres salir o espera que te maten.");

    if(!strcmp(cmdtext, "/dmsniper", true)){
        SetPlayerPos(playerid, 762.0065, 5.4993, 1000.7112);
        SetPlayerArmour(playerid, 100.0);
        GivePlayerWeapon(playerid, 34, 3000);
        SetPlayerVirtualWorld(playerid, 1);
        return Juegos[playerid] = true;
    }
    return 0;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    Juegos[playerid] = false;
    return SetPlayerVirtualWorld(playerid, 0);
}
Reply
#7

Ya te lo habia dejado bien en el post anterior...

no se xq le moviste xD y agregaste comillas y una llave de mas.
Reply
#8

Quote:
Originally Posted by dis77urbio
Посмотреть сообщение
Ya te lo habia dejado bien en el post anterior...

no se xq le moviste xD y agregaste comillas y una llave de mas.
XD CREO JEJEJE
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)