bug id
#1

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 ?
Reply
#2

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;
}
Reply
#3

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,
Reply
#4

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.
Reply
#5

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

First

Second

Third

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

Post the code
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)