22.01.2012, 17:27
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.
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;
}

