if (strcmp("/motor", cmdtext, true, 10) == 0) { new State; new mot, lu, alar, por, cap, porma, ob; new carro = GetPlayerVehicleID(playerid); if(carro != INVALID_VEHICLE_ID) { State=GetPlayerState(playerid); if(State!=PLAYER_STATE_DRIVER) { SendClientMessage(playerid,COLOR_GREY,"Vocк nгo й o motorista do carro !"); return 1; } if(motor[playerid] == 0) { GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob); SetVehicleParamsEx(carro, VEHICLE_PARAMS_ON, lu, alar, por, cap, porma, ob); motor[playerid] = 1; SendClientMessage(playerid, 0xFFFFFFAA, "Veiculo {2F991A}Ligado!"); format(string, sizeof(string), "O motorista leva sua mгo direita atй a igniзгo do veiculo e liga o veнculo."); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(motor[playerid] == 1) { GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob); SetVehicleParamsEx(carro, VEHICLE_PARAMS_OFF, lu, alar, por, cap, porma, ob); motor[playerid] = 0; SendClientMessage(playerid, 0xFFFFFFAA, "Veiculo {E31919}Desligado!"); format(string, sizeof(string), "O motorista leva sua mгo direita atй a igniзгo do veiculo e desliga o veнculo."); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else { SendClientMessage(playerid, COLOR_GREY, "Vocк precisa estar em um carro para usar este comando !"); } } return 1; } if (strcmp("/farol", cmdtext, true, 10) == 0) { new State; new mot, lu, alar, por, cap, porma, ob; new carro = GetPlayerVehicleID(playerid); if(carro != INVALID_VEHICLE_ID) { State=GetPlayerState(playerid); if(State!=PLAYER_STATE_DRIVER) { SendClientMessage(playerid,COLOR_GREY,"Vocк nгo й o motorista do carro !"); return 1; } if(luz[playerid] == 0) { GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob); SetVehicleParamsEx(carro, mot, VEHICLE_PARAMS_ON, alar, por, cap, porma, ob); luz[playerid] = 1; SendClientMessage(playerid, 0xFFFFFFAA, "Farol {2F991A}Ligado!"); } else if(luz[playerid] == 1) { GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob); SetVehicleParamsEx(carro, mot, VEHICLE_PARAMS_OFF, alar, por, cap, porma, ob); luz[playerid] = 0; SendClientMessage(playerid, 0xFFFFFFAA, "Farol {E31919}Desligado!"); } else { SendClientMessage(playerid, COLOR_GREY, "Vocк precisa estar em um carro para usar este comando !"); } } return 1; }
C:\Users\Matheus\Desktop\Brasil Cidade Virtual 0.3z\gamemodes\BCV.pwn(23) : warning 201: redefinition of constant/macro (symbol "STREAMER_AREA_TYPE_RECTANGLE") C:\Users\Matheus\Desktop\Brasil Cidade Virtual 0.3z\gamemodes\BCV.pwn(26) : warning 201: redefinition of constant/macro (symbol "STREAMER_AREA_TYPE_POLYGON") C:\Users\Matheus\Desktop\Brasil Cidade Virtual 0.3z\gamemodes\BCV.pwn(50017) : warning 219: local variable "weapons" shadows a variable at a preceding level C:\Users\Matheus\Desktop\Brasil Cidade Virtual 0.3z\gamemodes\BCV.pwn(50057) : error 017: undefined symbol "motor" C:\Users\Matheus\Desktop\Brasil Cidade Virtual 0.3z\gamemodes\BCV.pwn(50057) : warning 215: expression has no effect C:\Users\Matheus\Desktop\Brasil Cidade Virtual 0.3z\gamemodes\BCV.pwn(50057) : error 001: expected token: ";", but found "]" C:\Users\Matheus\Desktop\Brasil Cidade Virtual 0.3z\gamemodes\BCV.pwn(50057) : error 029: invalid expression, assumed zero C:\Users\Matheus\Desktop\Brasil Cidade Virtual 0.3z\gamemodes\BCV.pwn(50057) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
if(strcmp(cmdtext,"/vtrancar", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid) == 0) return SendClientMessage(playerid, -1, "[x] {FF0000}Vocк nгo estб dentro de um veнculo!");
new engine, lights, alarm, doors, bonnet, boot, objective;
new vehicleid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, engine, lights, false, true, bonnet, boot, objective);
SendClientMessage(playerid, -1, "[x] Veнculo Trancado");
return 1;
}
if(strcmp(cmdtext,"/vdestrancar", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid) == 0) return SendClientMessage(playerid, -1, "[x] {FF0000}Vocк nгo estб dentro de um veнculo!");
new engine, lights, alarm, doors, bonnet, boot, objective;
new vehicleid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, engine, lights, false, false, bonnet, boot, objective);
SendClientMessage(playerid, -1, "[x] Veнculo Destrancado");
return 1;
}
if(strcmp(cmdtext,"/vligar", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid) == 0) return SendClientMessage(playerid, -1, "[x] {FF0000}Vocк nгo estб dentro de um veнculo!");
new engine, lights, alarm, doors, bonnet, boot, objective;
new vehicleid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, true, lights, false, doors, bonnet, boot, objective);
SendClientMessage(playerid, -1, "[x] Veнculo Ligado");
return 1;
}
if(strcmp(cmdtext,"/vdesligar", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid) == 0) return SendClientMessage(playerid, -1, "[x] {FF0000}Vocк nгo estб dentro de um veнculo!");
new engine, lights, alarm, doors, bonnet, boot, objective;
new vehicleid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, false, lights, false, doors, bonnet, boot, objective);
SendClientMessage(playerid, -1, "[x] Veнculo Desligado");
return 1;
}
if(strcmp(cmdtext,"/vfarolon", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid) == 0) return SendClientMessage(playerid, -1, "[x] {FF0000}Vocк nгo estб dentro de um veнculo!");
new engine, lights, alarm, doors, bonnet, boot, objective;
new vehicleid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, engine, true, false, doors, bonnet, boot, objective);
SendClientMessage(playerid, -1, "[x] Farуis Ligados");
return 1;
}
if(strcmp(cmdtext,"/vfaroloff", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid) == 0) return SendClientMessage(playerid, -1, "[x] {FF0000}Vocк nгo estб dentro de um veнculo!");
new engine, lights, alarm, doors, bonnet, boot, objective;
new vehicleid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, engine, false, false, doors, bonnet, boot, objective);
SendClientMessage(playerid, -1, "[x] Farуis Desligados");
return 1;
}
if(strcmp(cmdtext,"/vcapuon", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid) == 0) return SendClientMessage(playerid, -1, "[x] {FF0000}Vocк nгo estб dentro de um veнculo!");
new engine, lights, alarm, doors, bonnet, boot, objective;
new vehicleid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, engine, lights, false, doors, true, boot, objective);
SendClientMessage(playerid, -1, "[x] O Capu do veнculo foi aberto.");
return 1;
}
if(strcmp(cmdtext,"/vcapuoff", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid) == 0) return SendClientMessage(playerid, -1, "[x] {FF0000}Vocк nгo estб dentro de um veнculo!");
new engine, lights, alarm, doors, bonnet, boot, objective;
new vehicleid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, engine, lights, false, doors, false, boot, objective);
SendClientMessage(playerid, -1, "[x] O Capu do veнculo foi fechado.");
return 1;
}
if(strcmp(cmdtext,"/valarmeon", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid) == 0) return SendClientMessage(playerid, -1, "[x] {FF0000}Vocк nгo estб dentro de um veнculo!");
new engine, lights, alarm, doors, bonnet, boot, objective;
new vehicleid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, engine, lights, true, doors, bonnet, boot, objective);
SendClientMessage(playerid, -1, "[x] O Alarme do veнculo foi ligado.");
return 1;
}
if(strcmp(cmdtext,"/valarmeoff", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid) == 0) return SendClientMessage(playerid, -1, "[x] {FF0000}Vocк nгo estб dentro de um veнculo!");
new engine, lights, alarm, doors, bonnet, boot, objective;
new vehicleid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, engine, lights, false, doors, bonnet, boot, objective);
SendClientMessage(playerid, -1, "[x] O Alarme do veнculo foi desligado.");
return 1;
}
if(strcmp(cmdtext,"/vportamalason", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid) == 0) return SendClientMessage(playerid, -1, "[x] {FF0000}Vocк nгo estб dentro de um veнculo!");
new engine, lights, alarm, doors, bonnet, boot, objective;
new vehicleid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, engine, lights, false, doors, bonnet, true, objective);
SendClientMessage(playerid, -1, "[x] O Porta Malas do veнculo foi aberto.");
return 1;
}
if(strcmp(cmdtext,"/vportamalasoff", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid) == 0) return SendClientMessage(playerid, -1, "[x] {FF0000}Vocк nгo estб dentro de um veнculo!");
new engine, lights, alarm, doors, bonnet, boot, objective;
new vehicleid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, engine, lights, false, doors, bonnet, false, objective);
SendClientMessage(playerid, -1, "[x] O Porta Malas do veнculo foi fechado.");
return 1;
}
Porйm da mesma forma que o restante aconselha eu tambйm irei aconselhar ( Use mais o search pois sistemas iguais este й oque mas existe ). |