Help please.
#6

I know have this:
Код:
if(strcmp(cmd,"/makefull", true) == 0)
{

    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRIJS, "TIP: Type /makefull [playerid] [stat]");
    giveplayerid = strval(tmp);
    if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid,COLOR_VELROOD,"*This ID is not connected*");
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRIJS, "TIP: Type /makefull [playerid] [stat]");
    
    if(adminlevel[playerid] >= 3)
    {
    if(strval(tmp2) == 1) SetPlayerScore(giveplayerid,23);
    if(strval(tmp2) == 2) SetPlayerScore(giveplayerid,73);
    if(strval(tmp2) == 3) SetPlayerScore(giveplayerid,89);
    if(strval(tmp2) == 4) SetPlayerScore(giveplayerid,100);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GRIJS,"You're not allowed to use this command");
    }
    return 1;
	}
But when I do /makefull [playerid] [statid] it doesn't set's my score to 23 or 73 etc.

Someone please help
Reply


Messages In This Thread
Help please. - by bartje01 - 09.07.2010, 10:17
Re: Help please. - by CAR - 09.07.2010, 10:22
Re: Help please. - by bartje01 - 09.07.2010, 10:32
Re: Help please. - by Hiddos - 09.07.2010, 10:35
Re: Help please. - by bartje01 - 09.07.2010, 10:40
Re: Help please. - by bartje01 - 09.07.2010, 15:20
Re: Help please. - by bartje01 - 09.07.2010, 15:46
Re: Help please. - by Hiddos - 09.07.2010, 15:48
Re: Help please. - by bartje01 - 09.07.2010, 16:00
Re: Help please. - by bartje01 - 09.07.2010, 16:06

Forum Jump:


Users browsing this thread: 2 Guest(s)