SA-MP Forums Archive
bug id - 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: bug id (/showthread.php?tid=514979)



bug id - warlord321 - 24.05.2014

hello, how to fix bugged id? like id 0,1,2,3,4,5 it's random bug, i already update sscanf to new version, but i still get bug id In-game, anyone can help me ?


Re: bug id - SilentSoul - 24.05.2014

Could you post your script? I can't understand your problem , If you're trying to use sscanf for params syntax you should use
pawn Код:
CMD:test(playerid, params[])
{
    new id;
    if(sscanf(params, "d",id)) return SendClientMessage(playerid, -1, "Syntax :/test [playerid]");
    SendClientMessage(id,-1,"Your id is working fine!");
    return 1;
}



Re: bug id - warlord321 - 24.05.2014

bug id, like you want to kick someone else or jail, or fined, ex: you fine user /fine 3 5000 abuse, cmd will said Invalid Player, same with another id when they get bug id, if you relog it will fixed self,


Re: bug id - NaClchemistryK - 24.05.2014

pawn Код:
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,-1,"Invalid Player ID.");
This is the actual code that checks whether it is a valid player id. I don't know what could be bugging it if you wrote a correct code. But there should be no harm when you show us how you check the player's id. Please show us so we can look at it.


Re: bug id - Rittik - 24.05.2014

Код:
if(id==INVALID_PLAYER_ID)
{
 SendClientMessage(playerid,0xFFFFFFFF,"Player is not Available");
return 1;
}
else
{
//your actuall code goes here.
}



Re: bug id - warlord321 - 24.05.2014

First

Second

Third

please help me, i dont know i must start from what codes..


Re: bug id - Dangjai - 24.05.2014

Post the code