What did i do wrong
#7

like so:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/elegy", true)==0)
     {
    new mycar;
    mycar = GetPlayerVehicleID(playerid);
    AddVehicleComponent(mycar, 1010);
    AddVehicleComponent(mycar, 1034);
    AddVehicleComponent(mycar, 1036);
    AddVehicleComponent(mycar, 1146);
    AddVehicleComponent(mycar, 1149);
    AddVehicleComponent(mycar, 1171);
    ChangeVehiclePaintjob(mycar, 3);
    ChangeVehicleColor(mycar, 6, 6);
    return 1;
    }
}
and you use the "#define" thingy to give a variable its value. Like for example
Код:
#define COLOR_PURPLE 0x800080AA
COLOR_PURPLE is the name which you can use anywhere and 0x800080AA is its hex color code. The script will know that COLOR_PURPLE is equal 0x800080AA
Reply


Messages In This Thread
What did i do wrong - by Futurezx - 01.06.2009, 11:51
Re: What did i do wrong - by propilot - 01.06.2009, 12:02
Re: What did i do wrong - by Futurezx - 01.06.2009, 12:09
Re: What did i do wrong - by Futurezx - 01.06.2009, 12:19
Re: What did i do wrong - by dice7 - 01.06.2009, 12:33
Re: What did i do wrong - by luckie12 - 01.06.2009, 12:38
Re: What did i do wrong - by dice7 - 01.06.2009, 12:42
Re: What did i do wrong - by luckie12 - 01.06.2009, 12:43
Re: What did i do wrong - by dice7 - 01.06.2009, 12:47
Re: What did i do wrong - by luckie12 - 01.06.2009, 12:51

Forum Jump:


Users browsing this thread: 1 Guest(s)