Help Please
#1

Please help. My errors:
error 006: must be assigned to an array
Thats my error. I get 3 of them. Help please!

The script:

PHP код:
command(setplateplayeridparams[])
{
    new 
platevehslotstring[255];
    if(
sscanf(params"ul"platevehslot))
    {
        
SendClientMessage(playeridWHITE"SYNTAX: /setplate [Plate Name] [Car Slot]");
    }
    else
    {
        switch(
vehslot)
        {
            case 
1:
            {
                
format(stringsizeof(string), "%s"plate);
                
SetVehicleNumberPlate(Player[playerid][CarLinkID], string);
                
Player[playerid][CarPlate] = string;
            }
            case 
2:
            {
                
format(stringsizeof(string), "%s"plate);
                
SetVehicleNumberPlate(Player[playerid][Car2LinkID], string);
                
Player[playerid][CarPlate2] = string;
            }
            case 
3:
            {
                
format(stringsizeof(string), "%s"plate);
                
SetVehicleNumberPlate(Player[playerid][Car3LinkID], string);
                
Player[playerid][CarPlate3] = string;
            }
        }
    }

Reply
#2

Код:
command(setplate, playerid, params[])
{
    new plate, vehslot, string[255];
    if(sscanf(params, "ul", plate, vehslot))
    {
        SendClientMessage(playerid, WHITE, "SYNTAX: /setplate [Plate Name] [Car Slot]");
    }
    else
    {
        switch(vehslot)
        {
            case 1:
            {
                format(string, sizeof(string), "%s", plate);
                SetVehicleNumberPlate(Player[playerid][CarLinkID], string);
                Player[playerid][CarPlate] = string;
            }
            case 2:
            {
                format(string, sizeof(string), "%s", plate);
                SetVehicleNumberPlate(Player[playerid][Car2LinkID], string);
                Player[playerid][CarPlate2] = string;
            }
            case 3:
            {
                format(string, sizeof(string), "%s", plate);
                SetVehicleNumberPlate(Player[playerid][Car3LinkID], string);
                Player[playerid][CarPlate3] = string;
            }
        }
    } 
    return 1;
}
Reply
#3

That didnt work
Reply
#4

Bump
Reply
#5

Please help! Why didnt it work?
Reply
#6

No need to rape the "Reply" button...
Reply
#7

lmfao why the hell do you think your so special that we should give you a reply within 8minutes?? Infact in part you bumped within 5.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)