onplayerrequestspawn weird bug
#1

I have this weird bug when player try to use admin skin it works perfectly but
pawn Код:
if(ServerInfo[AdminOnlySkins] == 1) {
        if( (GetPlayerSkin(playerid) == ServerInfo[AdminSkin]) ) {
             if(PlayerInfo[playerid][Level] >= 1)
                SetPlayerHealth(playerid, 100);
                else {
                if(PlayerInfo[playerid][Level] >= 0)
                SendClientMessage(playerid, red, "You are not an admin to use this skin");
                return 0;}}}
when he press shift lotsnlots of messages appear why? it must be just one message as all servers
Reply
#2

bump
Reply
#3

it depends how long he is pressing Shift try clicking then quickly releasing it.
Reply
#4

nah dude its a bug I tried all of that I had gone to another server but its just sends one weird
Reply
#5

bump again
Reply
#6

your indentations gave me a stroke.

pawn Код:
if( (
should only have one bracket.

(I fixed that and changed the indentations so I can read it better for more issues)

pawn Код:
if(ServerInfo[AdminOnlySkins] == 1)
 {
    if(GetPlayerSkin(playerid) == ServerInfo[AdminSkin])
    {
        if(PlayerInfo[playerid][Level] >= 1)
        {
            SetPlayerHealth(playerid, 100);
        }
        else
        {
            if(PlayerInfo[playerid][Level] >= 0)
            {
                SendClientMessage(playerid, red, "You are not an admin to use this skin");
            }
        }
    }
    return 0;
}
Though your code doesn't make sense, what are you trying to do
Reply
#7

no brother still the same bump
Reply
#8

Can You Explain how dude, I have like 4 skins onplayerrequestspawn my clan skin, admin skin, another clan skin, and owner skin it all have the same problem lots of messages I guess it bothers the players ... it just pull over the screen I need a serious help ...
Reply
#9

so why it don't happen at other servers its just a question why am I the only one who have this thing ? I know you are pro dude use your magic and show me codes I don't understand lots of words I need something with realty I know you can help
Reply
#10

I will do what you had say but please can you explain !! please dude
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)