Jump to content

Comanda`


david1995

Recommended Posts

Iti puteti face orice comanda pentru admin . Dupa tutorial-ul lui Widualk ?

Ma refer la cel de register/login .

Sau sa o transformati pe asta ca dupa stiu eu sa le fac.

Quote

CMD:o(playerid, params[])
{
    new message[128], string[256], sendername[25];
    if(playerVariables[playerid][pAdminLevel] >= 1)
    {
        if(sscanf(params, "s[128]", message)) return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/o [message]");
        {
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "(( %s says: %s ))", sendername, message);
            SendClientMessageToAll(COLOR_LIGHT, string);
        }
    }
    else return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);
    return 1;
}

 

Link to comment
Share on other sites

Acum 2 ore, david1995 a spus:

Iti puteti face orice comanda pentru admin . Dupa tutorial-ul lui Widualk ?

Ma refer la cel de register/login .

Sau sa o transformati pe asta ca dupa stiu eu sa le fac.

 

Nu am inteles nimic,ce problema ai ?

Link to comment
Share on other sites

1 hour ago, keNN. said:

Nu am inteles nimic,ce problema ai ?

Eu ma refer sa

 

1 hour ago, Banditul said:

Adaugi asta: 

If (P_Data[playerid][pAdmin] < 1) return 0;

comenzi si va fi folosita doar de admini,aceasta variabila am vazut-o la tutorialu precizat de tine

Acuma imi da eroarile astea.

Quote

C:\Users\Darius\Desktop\new prj\pawno\rpg.pwn(546) : error 029: invalid expression, assumed zero
C:\Users\Darius\Desktop\new prj\pawno\rpg.pwn(546) : warning 215: expression has no effect
C:\Users\Darius\Desktop\new prj\pawno\rpg.pwn(546) : error 001: expected token: ";", but found "return"
C:\Users\Darius\Desktop\new prj\pawno\rpg.pwn(547) : warning 225: unreachable code
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase

linia 546

Quote

else return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);

si linia 547

Quote

return 1;

 

Link to comment
Share on other sites

CMD:o(playerid, params[])
{
    new message[128], string[256], sendername[25];
    If (P_Data[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);

if(sscanf(params, "s[128]", message)) return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/o [message]");
        {
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "(( %s says: %s ))", sendername, message);
            SendClientMessageToAll(COLOR_LIGHT, string);
        }
   
    return 1;
}

 

Poftim,scuze is pe telefon

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.