[Tutorial] ChangeVehiclePaintjob Tutorial
#4

You won a cookie. Click me!

Mistakes you had. The correct are:

0 = Paintjob
1 = Paintjob
2 = Paintjob
3 = Delete Paintjob

However, at the code. The length is optional. If you don't know to count how many characters the command has, I suggest you not use it.
pawn Code:
if( strcmp( "/restorepaintjob", cmdtext, true, 16 ) == 0 ) // It's 16, not 8. 15 letters and 1 /
{
    if( !IsPlayerInAnyVehicle( playerid ) ) return SendClientMessage( playerid, -1, "You must are in a vehicle" );
    // Without Bracket under it.
    ChangeVehiclePaintjob( GetPlayerVehicleID( playerid ), 0 );
    return 1;
}
Reply


Messages In This Thread
ChangeVehiclePaintjob Tutorial - by JustLuca - 22.01.2012, 17:06
Re: ChangeVehiclePaintjob Tutorial - by System64 - 22.01.2012, 17:09
Re: ChangeVehiclePaintjob Tutorial - by JustLuca - 22.01.2012, 17:25
Re: ChangeVehiclePaintjob Tutorial - by Konstantinos - 22.01.2012, 17:27

Forum Jump:


Users browsing this thread: 1 Guest(s)