SA-MP Forums Archive
ID 1 bug - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: ID 1 bug (/showthread.php?tid=159905)



ID 1 bug - oliverrud - 14.07.2010

I got a weird bug with ID 1, whenever someone write in /a it says: AChat ID1 Name:

Same goes for almost everything else

Theres a bunch of commands that I can't use as they only affect myself as it takes it as ID 1, last time I tested, I was ID 1.

Anybody got a clue about where to look to solve this?


Re: ID 1 bug - TouR - 14.07.2010

Server for "AChat ID1" at the script and find it.. Use cntrl+f


Re: ID 1 bug - oliverrud - 14.07.2010

I bet theres some fails in the code but I made it quick, I know the str(len) thing doesn't work right now it doesn't atleast.
pawn Код:
if(sscanf(params,"s[126]",msg)) SendClientMessage(playerid,COLOR_WHITE,"Usage: /a [Message]");
        else
        {
            for(new i=0; i<MAX_PLAYERS; i++)
            {
                if(PlayerAccount[i][Admin] >= 1)
                {
                    new string[80],string2[63],msg2[64],msg1[80];
                    if(strlen(msg) >= 63)
                    {
                        strmid(string2,msg,63,strlen(msg));
                        strmid(string,msg,0,63);
                        format(msg1,sizeof(msg1),"AChat %s: %s..",pname,string);
                        format(msg2,sizeof(msg2),"..%s",string2);
                    }
                    else
                    {
                        format(string,sizeof(string),"AChat %s: %s",pname,msg);
                        SendClientMessage(i,COLOR_PURPLE,string);
                    }
                }
            }
        }