ID 1 bug
#1

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

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

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);
                    }
                }
            }
        }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)