Jump to content
  • 0

Comanda /abigear


fytza

Question

Salut Am Incercat sa fac comanda /abigear si cand o pun pe gamemode imi da 5 erori ;)

[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]

[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

5 answers to this question

Recommended Posts

Offf chiar asa de inteligent esti incat sa nu iti fi dat seama ca de la asta este problema?

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

Pune:

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

{

    if(IsPlayerConnected(playerid))

    {

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

{

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

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.