some commands help pls
#8

Quote:
Originally Posted by Mean
Посмотреть сообщение
pawn Код:
CMD:vr( playerid, params [ ] ) {
   if( !IsPlayerInAnyVehicle( playerid ) ) return SendClientMessage( playerid, red, "You need to be in a vehicle to use this. " );
   RepairVehicle( GetPlayerVehicleID( playerid ) );
   return SendClientMessage( playerid, yellow, "You have fixed your vechicle" );
}
pawn Код:
CMD:carcolor( playerid, params[ ] ) {
   new color1, color2;
   if( !IsPlayerInAnyVehicle( playerid ) ) return SendClientMessage( playerid, red, "You need to be in a vehicle to use this. " );
   if( sscanf( params, "dd", color1, color2 ) ) return SendClientMessage( playerid, red, "/carcolor [color1] [color2]" );
   ChangeVehicleColor( GetPlayerVehicleID( playerid ), color1, color2 );
   return SendClientMessage( playerid, yellow, "You have changed your vehicle color" );
}
There were a FEW obvious errors in the code...
Thanks its working
Reply


Messages In This Thread
some commands help pls - by CoNvErTeR - 21.07.2011, 15:21
Re: some commands help pls - by grand.Theft.Otto - 21.07.2011, 15:46
Re: some commands help pls - by Shockey HD - 21.07.2011, 15:47
Re: some commands help pls - by CoNvErTeR - 21.07.2011, 15:48
Re: some commands help pls - by grand.Theft.Otto - 21.07.2011, 15:50
Re: some commands help pls - by CoNvErTeR - 21.07.2011, 15:51
Re: some commands help pls - by Mean - 21.07.2011, 15:52
Re: some commands help pls - by CoNvErTeR - 21.07.2011, 15:59
Re: some commands help pls - by Mean - 21.07.2011, 16:00

Forum Jump:


Users browsing this thread: 2 Guest(s)