27.12.2009, 19:08
Hey,
Well my /carcolor command returns an "[ERROR] Unknown Command" when done IG, can anyone find out why?
Well my /carcolor command returns an "[ERROR] Unknown Command" when done IG, can anyone find out why?
pawn Код:
dcmd_carcolor(playerid,params[])
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0x33CCFFFF,"[VT ERROR] You're not in a vehicle.");
new
color1,
color2,
vid=GetPlayerVehicleID(playerid);
if(sscanf(params,"ii",color1,color2)) return SendClientMessage(playerid,0x33CCFFFF,"Usage: /carcolor [color 1] [color2]");
if(vInfo[vid][vOwnerId] != PlayerInfo[playerid][pSQLId]) return SendClientMessage(playerid,0x33CCFFFF,"This vehicle does not belong to you.");
vInfo[vid][vColor1]=color1;
vInfo[vid][vColor2]=color2;
ChangeVehicleColor(vid,color1,color2);
SaveVehicle(vid);
return 1;
}