[HELP]Command tune
#1

Hello friends sa-mp someone could help me in this command!

Код:
	if (strcmp(cmdtext,"/tune", true)==0)
	{
	if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_RED,"You need a vehicle to put nitro.");
  if(IsPlayerInAnyVehicle(playerid));
  new Car = GetPlayerVehicleID(playerid), Model = GetVehicleModel(Car);
  switch(Model) { case 448,461,462,463,468,471,509,510,521,522,523,581,586: return SendClientMessage(playerid,COLOR_BLUE,"[ERROR]: You can not add components for bicycles!"); {
	SetPlayerInterior(playerid,0);
  new pname[MAX_PLAYER_NAME];
  GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
  format(string, sizeof(string), "Nitro successfully added!", pname);
  SendClientMessage(playerid,COLOR_WHITE, string);
  AddVehicleComponent(vehicleid, 1010);
	return 1;
	}
ERROR Line:
Код:
D:\5-SA-MP\0.3a R7\gamemodes\SS.pwn(1457) : error 036: empty statement
D:\5-SA-MP\0.3a R7\gamemodes\SS.pwn(1459) : error 002: only a single statement (or expression) can follow each "case"
D:\5-SA-MP\0.3a R7\gamemodes\SS.pwn(1465) : error 017: undefined symbol "vehicleid"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)