#1

i want to make it so i type once /sapca and i have hat on and another time /sapca to take off hat


PHP код:
        if(strcmp("/sapca",cmdtext,true) == 0)
                    {
                    if(
PlayerInfo[playerid][pMember] == || PlayerInfo[playerid][pLeader] == 1)                       
                    }
                    else
                    {
                    if(
PlayerInfo[playerid][pMember] == || PlayerInfo[playerid][pLeader] == 1)
                    
RemovePlayerAttachedObject(playerid,3);
                    } 
Reply
#2

Not quite sure why you are checking an else if as the same thing try this.

pawn Код:
if(strcmp("/sapca",cmdtext,true) == 0)
                    {
                    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) {
                    RemovePlayerAttachedObject(playerid,3);
                    }
                    }
Reply
#3

i have SetPlayerAttachedObject i couldent post it..special..thats why its else!
Reply
#4

Well it's not helpful if you won't post the full code.
Reply
#5

PHP код:
if(strcmp("/sapca",cmdtext,true) == 0)
                    {
                    if(
PlayerInfo[playerid][pMember] == || PlayerInfo[playerid][pLeader] == 1)
                    {
                    
SetPlayerAttachedObject(playerid,//NoNeed);
                    
}
                    else
                    {
                    if(
PlayerInfo[playerid][pMember] == || PlayerInfo[playerid][pLeader] == 1)
                    {
                    
RemovePlayerAttachedObject(playerid,3);
                    }
                    } 
Reply
#6

fixed !
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)