Need help in /giveallscore (rep++)
#6

Of course it said unknown command because you didn't add
pawn Код:
dcmd(giveallscore, 12, cmdtext);
to your OnPlayerCommandText.

This is necessary when using DCMD.
Click me for more info!

Also:
pawn Код:
dcmd_giveallscore(playerid,params[]) {
    if(AccInfo[playerid][Level] >= 3) {
        SendCommandToAdmins(playerid,"GiveAllScore");
        for(new i = 0; i < MAX_PLAYERS; i++) {
            SetPlayerScore(i, GetPlayerScore(i) + strval(params));
        }
        new string[128];
        format(string,sizeof string,"|- Administrator \"%s\" has given everyone %d score!", pName(playerid), strval(params));
        SendClientMessageToAll(blue, string);
    }
    else {
        ErrorMessages(playerid, 6);
    }
    return 1;
}
PS: What CrazyMax and Romel posted is SETallscore, not GIVEallscore.
Reply


Messages In This Thread
Need help in /giveallscore (rep++) - by iOmar - 29.04.2012, 07:19
Re: Need help in /giveallscore (rep++) - by Crazymax - 29.04.2012, 07:22
Re: Need help in /giveallscore (rep++) - by iOmar - 29.04.2012, 08:12
Re: Need help in /giveallscore (rep++) - by JaKe Elite - 29.04.2012, 08:27
Re: Need help in /giveallscore (rep++) - by $$inSane - 29.04.2012, 08:38
Re: Need help in /giveallscore (rep++) - by Mean - 29.04.2012, 08:40
Re: Need help in /giveallscore (rep++) - by $$inSane - 29.04.2012, 08:42
Re: Need help in /giveallscore (rep++) - by Mean - 29.04.2012, 08:44
Re: Need help in /giveallscore (rep++) - by iOmar - 29.04.2012, 10:07

Forum Jump:


Users browsing this thread: 2 Guest(s)