Attachlabel
#1

PHP код:
COMMAND:label(playeridparams[])
{
    if (
playerData[playerid][playerLoggedIn])
    {
        if(
playerData[playerid][HasCustomLable])
        {
            new 
value[25];
            if(
sscanf(params"s"value))
            {
                return 
SendClientMessage(playeridCOLOR_WHITE"{B7B7B7}[SERVER] {FFFF00}Usage: \"lable TEXT [COST = 4000XP]\"");
            }
            else
            {
                if (
playerData[playerid][playerXP] >= 4000)
                {
                    if(
strlen(value) < 16)
                    {
                        
playerGiveXP(playerid, -4000);
                        
playerData[playerid][CustomLabel] = Create3DTextLabel("%s"0xFFDC2EFF30.040.050.060.0, -11value);
                        
Attach3DTextLabelToPlayer(playerData[playerid][CustomLabel], playerid0.00.00.4);
                        
playerData[playerid][HasCustomLable] = true;
                    }
                }
            }
        }
        else if(
playerData[playerid][HasCustomLable] == false)
            {
                
Delete3DTextLabel(playerData[playerid][CustomLabel]);
                
SendClientMessage(playerid, -1"Lable has been removed!");
            }
    }        
    return 
1;

.../cnr_commands.inc(2603) : warning 202: number of arguments does not match definition

line 2603:
playerData[playerid][CustomLabel] = Create3DTextLabel("%s", 0xFFDC2EFF, 30.0, 40.0, 50.0, 60.0, -1, 1, value);
Reply


Messages In This Thread
Attachlabel - by iLearner - 22.09.2016, 13:45
Re: Attachlabel - by StR_MaRy - 22.09.2016, 13:52
Re: Attachlabel - by iLearner - 22.09.2016, 13:56
Re: Attachlabel - by StR_MaRy - 22.09.2016, 13:57
Re: Attachlabel - by iLearner - 22.09.2016, 15:14
Re: Attachlabel - by Konstantinos - 22.09.2016, 15:19
Re: Attachlabel - by iLearner - 22.09.2016, 15:30

Forum Jump:


Users browsing this thread: 1 Guest(s)