Jump to content
  • 0

Ajutor


fytza

Question

nu imi merge comanda ce trebuie sa pun sa mearga imi da errori

[pawn] if(strcmp(cmd, "/abigear", true) == 0 && PlayerInfo[playerid][pAdmin] >= 3)

{

        if(IsPlayerConnected(playerid))

    {

  SCM(playerid, 0x33CCFFAA,"__________________[ Admin - BigEars ]_____________________");

  GetPlayerName(i, sendername, sizeof(sendername));

for(new i = 0; i < MAX_PLAYERS; i++)

{

    if (PlayerInfo[pBigEar] == 1)

    {

format(string, 256, "[iD:{FF0000}%d{00A3FF}] Nume Admin{FFFFFF}: %s", i, sendername);

SendClientMessage(playerid, COLOR_WHITE, string);

    }

    }

}

return (1) ;

}[/pawn]

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

uite

[pawn]C:\Users\fytza\Desktop\gamemodes\GM.pwn(64763) : error 010: invalid function or declaration

C:\Users\fytza\Desktop\gamemodes\GM.pwn(64765) : error 010: invalid function or declaration

C:\Users\fytza\Desktop\gamemodes\GM.pwn(64769) : error 010: invalid function or declaration

C:\Users\fytza\Desktop\gamemodes\GM.pwn(64771) : error 010: invalid function or declaration

C:\Users\fytza\Desktop\gamemodes\GM.pwn(64778) : error 010: invalid function or declaration

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

5 Errors.[/pawn]

Link to comment
Share on other sites

Nu merge comanda pentru ca este randul acesta!

[pawn]if(strcmp(cmd, "/abigear", true) == 0 && PlayerInfo[playerid][pAdmin] >= 3)[/pawn]

Cat de inteligent sa fi sa folosesti && PlayerInfo....?

Sfatul meu?

Ia o comanda exemplu /gotols si copiaza pana la [pAdmin] >=3);

(

Dupa care pui restul comenzii si anume :

SCM(playerid, 0x33CCFFAA,"__________________[ Admin - BigEars ]_____________________");

  GetPlayerName(i, sendername, sizeof(sendername));

for(new i = 0; i < MAX_PLAYERS; i++)

{

    if (PlayerInfo[pBigEar] == 1)

    {

format(string, 256, "[iD:{FF0000}%d{00A3FF}] Nume Admin{FFFFFF}: %s", i, sendername);

SendClientMessage(playerid, COLOR_WHITE, string);

    }

    }

}

return (1) ;

}

 

 

Link to comment
Share on other sites

[pawn] if(strcmp(cmd, "/abigear", true) == 0)

{

    if(PlayerInfo[playerid][pAdmin] <= 2) return SencClientMessage(playerid,"Invalid level!");

          else

          {

        if(IsPlayerConnected(playerid))

    {

  SCM(playerid, 0x33CCFFAA,"__________________[ Admin - BigEars ]_____________________");

  GetPlayerName(i, sendername, sizeof(sendername));

for(new i = 0; i < MAX_PLAYERS; i++)

{

    if (PlayerInfo[pBigEar] == 1)

    {

format(string, 256, "[iD:{FF0000}%d{00A3FF}] Nume Admin{FFFFFF}: %s", i, sendername);

SendClientMessage(playerid, COLOR_WHITE, string);

    }

    }

}

            }

return (1) ;

}[/pawn]

[glow=blue,2,300]SAMP.[glow=yellow,2,300]RSP-GAME[glow=red,2,300].NET[/glow][/glow][/glow]

Link to comment
Share on other sites

[pawn] if(strcmp(cmd, "/abigear", true) == 0)

{

    if(PlayerInfo[playerid][pAdmin] <= 2) return SencClientMessage(playerid,"Invalid level!");

          else

          {

        if(IsPlayerConnected(playerid))

    {

  SCM(playerid, 0x33CCFFAA,"__________________[ Admin - BigEars ]_____________________");

  GetPlayerName(i, sendername, sizeof(sendername));

for(new i = 0; i < MAX_PLAYERS; i++)

{

    if (PlayerInfo[pBigEar] == 1)

    {

format(string, 256, "[iD:{FF0000}%d{00A3FF}] Nume Admin{FFFFFF}: %s", i, sendername);

SendClientMessage(playerid, COLOR_WHITE, string);

    }

    }

}

            }

return (1) ;

}[/pawn]

Pune :  GetPlayerName(i, sendername, sizeof(sendername)); sub for(new i = 0; i < MAX_PLAYERS; i++) / altfel ii va da eroarea asta  : error 017: undefined symbol "i"  .

uite comadna :

[pawn]  if(strcmp(cmd, "/abigear", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

if(PlayerInfo[playerid][pAdmin] >= 1)

{

        if(IsPlayerConnected(playerid))

    {

  SendClientMessage(playerid, 0x33CCFFAA,"__________________[ Admin - BigEars ]_____________________");

 

for(new i = 0; i < MAX_PLAYERS; i++)

            {

    if (PlayerInfo[pBigEar] == 1)

    {

        GetPlayerName(i, sendername, sizeof(sendername));

format(string, 256, "[iD:{FF0000}%d{00A3FF}] Nume Admin{FFFFFF}: %s", i, sendername);

SendClientMessage(playerid, COLOR_WHITE, string);

    }

    }

}

}

            }

return (1) ;

}[/pawn]

Link to comment
Share on other sites

Rezolvat T/C

Inca nu sa rezolvat mai are o problema :

error 033: array must be indexed (variable "pBigEar")

Uite aicia incearca asa :

[pawn]  if(strcmp(cmd, "/abigear", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

if(PlayerInfo[playerid][pAdmin] >= 1)

{

        if(IsPlayerConnected(playerid))

    {

  SendClientMessage(playerid, 0x33CCFFAA,"__________________[ Admin - BigEars ]_____________________");

 

for(new i = 0; i < MAX_PLAYERS; i++)

            {

    if(BigEar == 1)

    {

        GetPlayerName(i, sendername, sizeof(sendername));

format(string, 256, "[iD:{FF0000}%d{00A3FF}] Nume Admin{FFFFFF}: %s", i, sendername);

SendClientMessage(playerid, COLOR_WHITE, string);

    }

    }

}

}

            }

return (1) ;

}[/pawn]

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.