C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(107) : error 010: invalid function or declaration C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(335 : warning 219: local variable "string" shadows a variable at a preceding level C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(3513) : warning 235: public function lacks forward declaration (symbol "IsAnMecanico") C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(3522) : warning 235: public function lacks forward declaration (symbol "IsAnMecanicoCar") C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(43913) : warning 219: local variable "alarme" shadows a variable at a preceding level C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(43913) : warning 219: local variable "portas" shadows a variable at a preceding level C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(43913) : warning 219: local variable "capo" shadows a variable at a preceding level C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(43913) : warning 219: local variable "portamalas" shadows a variable at a preceding level C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(43937) : warning 203: symbol is never used: "SetWorld" C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(42131) : warning 204: symbol is assigned a value that is never used: "roadblocktimer" C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(10104) : warning 204: symbol is assigned a value that is never used: "tugate" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
foward IsAnMecanico(playerid);
public IsAnMecanico(playerid)
public IsAnMecanicoCar(carid)
forward IsAnMecanico(playerid);
if(strcmp(cmd,"/rebocar",true)==0)
{
if(IsPlayerConnected(playerid))
{
if(IsAnMecanico(playerid))
{
if(IsPlayerInAnyVehicle(playerid))
{
new carid = GetPlayerVehicleID(playerid);
if(IsAnMecanicoCar(carid))
{
if(GetPlayerState(playerid)==2)
{
new Float:pX,Float:pY,Float:pZ;
GetPlayerPos(playerid,pX,pY,pZ);
new Float:vX,Float:vY,Float:vZ;
new Found=0;
new vid=0;
while((vid<MAX_VEHICLES)&&(!Found))
{
vid++;
GetVehiclePos(vid,vX,vY,vZ);
if ((floatabs(pX-vX)<7.0)&&(floatabs(pY-vY)<7.0)&&(floatabs(pZ-vZ)<7.0)&&(vid!=GetPlayerVehicleID(playerid)))
{
if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
{
DetachTrailerFromVehicle(GetPlayerVehicleID(playerid));
}
else
{
AttachTrailerToVehicle(vid,GetPlayerVehicleID(playerid));
}
}
}
if(!Found)
{
SendClientMessage(playerid,COLOR_RED,"Nгo tem nenhum carro perto.");
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Vocк precisa estar dirigindo!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "Vocк nгo tem um Guincho!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "Vocк nгo estб em um guincho!");
return 1;
}
}
else
{
SendClientMessage(playerid,COLOR_RED,"Vocк nгo й mecanico/Cop!");
return 1;
}
}
return 0;
}
forward IsAnMecanico(playerid);
forward IsAnMecanicoCar(carid);
public IsAnMecanico(playerid)
{
if(PlayerInfo[playerid][pJob] == 8) // Coloque o pJob e o !! de acordo com o seu Gamemode
{
return 1;
}
return 0;
}
public IsAnMecanicoCar(carid)
{
if(carid == 525) // Troque o !! pelo id do seu veiculo
{
return 1;
}
return 0;
}
public IsAnMecanicoCar(carid)
{
new model = GetVehicleModel(carid);
if(model== 525)
{
return 1;
}
return 0;
}
C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(3524) : warning 219: local variable "model" shadows a variable at a preceding level |
new model = GetVehicleModel(model);
new model = GetVehicleModel(carid);
C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(3522) : error 025: function heading differs from prototype C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(3524) : warning 219: local variable "model" shadows a variable at a preceding level C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(3524) : error 017: undefined symbol "carid" C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(17482) : error 017: undefined symbol "carid" |
forward IsAnMecanico(playerid);
forward IsAnMecanicoCar(carid);
if(strcmp(cmd,"/rebocar",true)==0)
{
if(IsPlayerConnected(playerid))
{
if(IsAnMecanico(playerid))
{
if(IsPlayerInAnyVehicle(playerid))
{
new model = GetPlayerVehicleID(playerid);
if(IsAnMecanicoCar(carid))
{
if(GetPlayerState(playerid)==2)
{
new Float:pX,Float:pY,Float:pZ;
GetPlayerPos(playerid,pX,pY,pZ);
new Float:vX,Float:vY,Float:vZ;
new Found=0;
new vid=0;
while((vid<MAX_VEHICLES)&&(!Found))
{
vid++;
GetVehiclePos(vid,vX,vY,vZ);
if ((floatabs(pX-vX)<7.0)&&(floatabs(pY-vY)<7.0)&&(floatabs(pZ-vZ)<7.0)&&(vid!=GetPlayerVehicleID(playerid)))
{
if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
{
DetachTrailerFromVehicle(GetPlayerVehicleID(playerid));
}
else
{
AttachTrailerToVehicle(vid,GetPlayerVehicleID(playerid));
}
}
}
if(!Found)
{
SendClientMessage(playerid,COLOR_RED,"Nгo tem nenhum carro perto.");
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Vocк precisa estar dirigindo!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "Vocк nгo tem um Guincho!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "Vocк nгo estб em um guincho!");
return 1;
}
}
else
{
SendClientMessage(playerid,COLOR_RED,"Vocк nгo й mecanico/Cop!");
return 1;
}
}
return 0;
}
public IsAnMecanico(playerid)
{
if(PlayerInfo[playerid][pJob] == 7 || PlayerInfo[playerid][pLeader] == 1) // mete aqui o id do job ou da facзгo
{
return 1;
}
return 0;
}
public IsAnMecanicoCar(model)
{
new model = GetVehicleModel(carid);
if(model== 525)
{
return 1;
}
return 0;
}