07.07.2010, 13:17
Why don't you use ZCMD + SSCANF? is faster
did not test, but im sure it works.. You will need ZCMD and SSCANF
notice how simple is to script with those two
Код:
CMD:carcolor( playerid, params[ ] ) { new Color1,Color2; if( !IsPlayerInAnyVehicle( playerid ) ) return SendClientMessage( playerid, red, "You Must Be In A Vehicle!"); if(sscanf(params,"dd",Color1,Color2)) return SendClientMessage(playerid, red,"USAGE: /Carcolor < Color 1 > < Color 2 >"); return ChangeVehicleColor(GetPlayerVehicleID(playerid) ,Color1,Color2); }
notice how simple is to script with those two