24.01.2013, 05:07
pawn Код:
COMMAND:vcolor(playerid, params[])
{
new color1,color2;
if(sscanf(params, "ii", color1, color2)) return SendClientMessage(playerid, COLOR_RED, "Usage: /vcolor [0-255] [0-255]");
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, COLOR_WHITE, "You are not in a vehicle.");
ChangeVehicleColor(GetPlayerVehicleID(playerid),color1,color2);
GameTextForPlayer(playerid,"~y~Vehicle Color Changed",2000,3);
return 1;
}
Код:
sscanf warning: Format specifier does not match parameter count