/invite cmd small bug [+Rep]
#1

Fixed
Reply
#2

pawn Код:
SetPVarInt(playerid, "Invited_By", -1);
        SetPVarInt(playerid, "Group_ID", -1);
You are checking for INVALID id types when player uses the command /accept.

So that code above must be:
pawn Код:
SetPVarInt(playerid, "Invited_By", INVALID_PLAYER_ID);
        SetPVarInt(playerid, "Group_ID", INVALID_GROUP_ID);
Reply
#3

Quote:
Originally Posted by Gammix
Посмотреть сообщение
pawn Код:
SetPVarInt(playerid, "Invited_By", -1);
        SetPVarInt(playerid, "Group_ID", -1);
You are checking for INVALID id types when player uses the command /accept.

So that code above must be:
pawn Код:
SetPVarInt(playerid, "Invited_By", INVALID_PLAYER_ID);
        SetPVarInt(playerid, "Group_ID", INVALID_GROUP_ID);
ok i will try
Reply
#4

Quote:
Originally Posted by Gammix
Посмотреть сообщение
pawn Код:
SetPVarInt(playerid, "Invited_By", -1);
        SetPVarInt(playerid, "Group_ID", -1);
You are checking for INVALID id types when player uses the command /accept.

So that code above must be:
pawn Код:
SetPVarInt(playerid, "Invited_By", INVALID_PLAYER_ID);
        SetPVarInt(playerid, "Group_ID", INVALID_GROUP_ID);
works thnx +repped
rep me back if you want
regards
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)