Jump to content

Question

Posted

linia de cod

CMD:Fly(players, params[])
{
            if(IsPlayerAdmin(playerid))
            {
            StartFly(playerid);
            InitFly(playerid);
            SendClientMessage(playerid, {f9f9f9}, "Ai activat FlyMode!");
            }
            else
            {
                    SendClientMessage(playerid, {f9f9f9}, "Nu ai acces la aceasta comanda!");
            }
            return 1;
}
CMD:stopfly(playerid, paramsp[])
{
            if(IsPlayerAdmin(playerid))
            {
            StopFly(playerid);
            SendClientMessage(playerid, {f9f9f9}, "Ai dezactivat FlyMode!");
            }
            else
            {
            SendClientMessage(playerid, {f9f9f9}, "Nu ai acces la aceasta comanda!");
            }
            return 1;
}

 

erori

C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(313) : error 017: undefined symbol "playerid"; did you mean "players"?
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(315) : error 017: undefined symbol "playerid"; did you mean "players"?
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(316) : error 017: undefined symbol "playerid"; did you mean "players"?
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(317) : error 017: undefined symbol "playerid"; did you mean "players"?
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(321) : error 017: undefined symbol "playerid"; did you mean "players"?
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(330) : error 017: undefined symbol "f9f9f9"
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(334) : error 017: undefined symbol "f9f9f9"
Pawn compiler 3.10.10              Copyright (c) 1997-2006, ITB CompuPhase
 

7 answers to this question

Recommended Posts

  • 0
Posted
10 minutes ago, Smulyz said:

linia de cod

CMD:Fly(players, params[])
{
            if(IsPlayerAdmin(playerid))
            {
            StartFly(playerid);
            InitFly(playerid);
            SendClientMessage(playerid, {f9f9f9}, "Ai activat FlyMode!");
            }
            else
            {
                    SendClientMessage(playerid, {f9f9f9}, "Nu ai acces la aceasta comanda!");
            }
            return 1;
}
CMD:stopfly(playerid, paramsp[])
{
            if(IsPlayerAdmin(playerid))
            {
            StopFly(playerid);
            SendClientMessage(playerid, {f9f9f9}, "Ai dezactivat FlyMode!");
            }
            else
            {
            SendClientMessage(playerid, {f9f9f9}, "Nu ai acces la aceasta comanda!");
            }
            return 1;
}

 

erori

C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(313) : error 017: undefined symbol "playerid"; did you mean "players"?
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(315) : error 017: undefined symbol "playerid"; did you mean "players"?
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(316) : error 017: undefined symbol "playerid"; did you mean "players"?
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(317) : error 017: undefined symbol "playerid"; did you mean "players"?
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(321) : error 017: undefined symbol "playerid"; did you mean "players"?
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(330) : error 017: undefined symbol "f9f9f9"
C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(334) : error 017: undefined symbol "f9f9f9"
Pawn compiler 3.10.10              Copyright (c) 1997-2006, ITB CompuPhase
 

Incearca asta:

CMD:fly(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xf9f9f9ff, "Nu ai acces la aceasta comanda!");
    
    StartFly(playerid);
    InitFly(playerid);
    return SendClientMessage(playerid, 0xf9f9f9ff, "Ai activat FlyMode!");
}
CMD:stopfly(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xf9f9f9ff, "Nu ai acces la aceasta comanda!");
    
    StopFly(playerid);
    return SendClientMessage(playerid, 0xf9f9f9ff, "Ai dezactivat FlyMode!");
}

  • Like 1
  • 0
Posted
19 minutes ago, qSorin_ said:

Incearca asta:

CMD:fly(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xf9f9f9ff, "Nu ai acces la aceasta comanda!");
    
    StartFly(playerid);
    InitFly(playerid);
    return SendClientMessage(playerid, 0xf9f9f9ff, "Ai activat FlyMode!");
}
CMD:stopfly(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xf9f9f9ff, "Nu ai acces la aceasta comanda!");
    
    StopFly(playerid);
    return SendClientMessage(playerid, 0xf9f9f9ff, "Ai dezactivat FlyMode!");
}

+1 a mers

  • 0
Posted
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, 0xf9f9f9ff, "Nu ai acces la aceasta comanda!");

Evident inlocuiesti cu ce variabile ai tu

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.