27.02.2013, 20:05
Hello scripters. I get some problems with transfering this command from zcmd to strcmp.
I will be glad if anyone try.
Quote:
CMD:carcolour(playerid, params[]) { if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_RED, "ERROR: You are not driving a vehicle."); new color1, color2; new vehicleid = GetPlayerVehicleID(playerid); if(sscanf(params, "hh", color1, color2)) return SendClientMessage(playerid, COLOR_YELLOW, "Correct Usage: /carcolour [colour1] [colour2]"); ChangeVehicleColor(vehicleid, color1, color2); return 1; } |