sscanf id bug
#1

Hey everyone, I have the latest SA-MP package & latest sscanf package (from https://sampforum.blast.hk/showthread.php?tid=602923) but I'm still experiencing id bugs! I don't know why, the commands should be working properly..
Sometimes id 0 bug, sometimes id 2 bug. I don't get it why... so annoying.

Here's one of my command.
PHP код:
CMD:pm(playeridparams[])
{
    new 
str[128], text[128], targetid;
    if(
sscanf(params"rs[128]"targetidtext)) return SendClientMessage(playerid, -1"{8EB2D6}SERVER:{FFFFFF} /pm [player] [text]");
    if(!
IsPlayerConnected(targetid)) return SendClientMessage(playerid, -1"{8EB2D6}SERVER:{FFFFFF} Player isn't connected!");
    
format(strsizeof(str), "PM to %s (%d): %s"GetName(targetid), targetidtext);
    
SendClientMessage(playerid0xE0E800FFstr);
    
format(strsizeof(str), "PM from %s (%d): %s"GetName(playerid), playeridtext);
    
SendClientMessage(targetid0xE8C900FFstr);
    return 
true;

I've tried "u" but its still the same.
Reply


Messages In This Thread
sscanf id bug - by Uberanwar - 11.06.2016, 18:21
Re: sscanf id bug - by K0P - 11.06.2016, 18:36
Re: sscanf id bug - by Uberanwar - 11.06.2016, 18:40
Re: sscanf id bug - by sampkinq - 11.06.2016, 18:41
Re: sscanf id bug - by moura98 - 11.06.2016, 19:21
Re: sscanf id bug - by Uberanwar - 24.06.2016, 16:03

Forum Jump:


Users browsing this thread: 1 Guest(s)