Strange Error
#3

This should work:


Код:
if(strcmp(cmdtext, "/setscore", true) == 0)
    {
        new string[128], otherplayer[MAX_PLAYER_NAME]; 
        new sendername[MAX_PLAYER_NAME];
        new tmp[256];
        new tmp2[256];
        new givenplayer = strval(tmp);
        new score = strval(tmp2);
        if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /setscore [playerid] [Score]");
        SetPlayerScore(givenplayer,score);
        GetPlayerName(playerid,sendername, sizeof(sendername));
        format(string,sizeof string,"Admin %s Has set your score to %d ",sendername,score);
        SendClientMessage(otherplayer, COLOR_GREEN, string);
        return 1;
    }
Reply


Messages In This Thread
Strange Error - by Patrick - 02.10.2012, 16:31
Re: Strange Error - by Red_Dragon. - 02.10.2012, 16:34
Re: Strange Error - by gtakillerIV - 02.10.2012, 16:36
Re: Strange Error - by Patrick - 02.10.2012, 16:37

Forum Jump:


Users browsing this thread: 1 Guest(s)