SCript don't work
#1

Hy guys, i make a script to read from file all factions member and show it to the leader but script don't work, please help me fix the script. Thanks
PHP код:
if(strcmp(cmd"/allmember"true) == 0)
    {
        if(
PlayerInfo[playerid][pLeader] == 0) { return SendClientMessage(playeridCOLOR_LIGHTRED"Tu nu esti lider !");}
        new    
string2[64];
        for(new 
0MAX_PLAYER_NAMEi++)
        {
              
format(string2sizeof(string2), "LARP/Users/%s.ini"i);
            if(
PlayerInfo[playerid][pLeader] == dini_Int(string2,"Member"))
            {
                      
format(string256"Membrul: %d",string2);
                      
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
            }
            else
            {
                
SendClientMessage(playeridCOLOR_LIGHTRED"test");
            }
        }
        return 
1;
    } 
Reply
#2

What isn't working in it?
Edit: Again this -.-
Change
pawn Код:
if(strcmp(cmd, "/allmember", true) == 0)
To
pawn Код:
if(strcmp(cmdtext, "/allmember", true) == 0)
And see if it works.
Reply
#3

Script compile but don't happen nothing if i type the command in the game
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)