Jump to content

Question

Posted

Am si eu o problema : [pawn]CMD:goto(playerid, params[])

{

    if(IsPlayerAdmin(playerid))

    {

new ID;

        new Str[64];

        if(sscanf(params, "u", ID)) SendClientMessage(playerid, COLOR_GREY, "USAGE: /goto [playerid]");

        else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_GREY, "Player is not connected!");

        else

        {

            new Float:x, Float:y, Float:z;

            GetPlayerPos(ID, x, y, z);

            SetPlayerPos(playerid, x+1, y+1, z);

        }

    }

    else

    {

        if(PlayerInfo[playerid][pAdmin] < 1)

SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command!");

    }

    return 1;

}[/pawn]

Asa cand nu aveam acel [pawn]if(PlayerInfo[playerid][pAdmin] < 1)[/pawn] , imi zicea ca nu am permisiune la comanda , lam adaugat la compiler a fost totul Ok , dar cand intru in server si dau /goto nu se intampla  nimic deci pur si simplu dau /goto si nici macar nu apare nimika , nici num scrie ca aceasta comanda nu exista .

Cred ca intelegeti care imi este problema.

PS : Mentionez ca la compilare imi da 3 Warnings [pawn]C:\Documents and Settings\RYder\Desktop\eGaming\Server\gamemodes\GMarea.pwn(30553) : warning 204: symbol is assigned a value that is never used: "Str"

C:\Documents and Settings\RYder\Desktop\eGaming\Server\gamemodes\GMarea.pwn(30553 -- 30564) : warning 217: loose indentation

C:\Documents and Settings\RYder\Desktop\eGaming\Server\gamemodes\GMarea.pwn(30569) : warning 217: loose indentation[/pawn]

NU STIE NIMENI ?

Invat ca sa Invat.

Recommended Posts

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.