/invite cmd small bug [+Rep] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /invite cmd small bug [+Rep] (
/showthread.php?tid=578314)
/invite cmd small bug [+Rep] -
simo0000 - 18.06.2015
Fixed
Re: /invite cmd small bug [+Rep] -
Gammix - 18.06.2015
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);
Re: /invite cmd small bug [+Rep] -
simo0000 - 18.06.2015
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
Re: /invite cmd small bug [+Rep] -
simo0000 - 18.06.2015
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