08.03.2015, 07:51
I think this code would work
Код:
if(!sscanf(params, "ddd", vID, cID,cID2)) { //code here if player write the optional color } else if(!sscanf(params, "d", vID)) { //same code here with random colours } else return SendClientMessage(playerid, COLOR_GREENYELLOW, "USAGE: /car [modelid] [colour1 optional] [colour2 optional]");