[Ajuda]Componente
#3

dame erro

Quote:

C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(2181) : error 055: start of function body without function header
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(2182) : error 010: invalid function or declaration
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(2184) : error 010: invalid function or declaration
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(2186) : error 010: invalid function or declaration
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(2187) : error 010: invalid function or declaration
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(2191) : error 021: symbol already defined: "GetPlayerPos"
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(2195) : error 010: invalid function or declaration
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(2197) : error 010: invalid function or declaration
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(219 : error 010: invalid function or declaration
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(2201) : error 021: symbol already defined: "cx"
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(2201) : error 021: symbol already defined: "cz"
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(2206) : error 054: unmatched closing brace ("}")
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(220 : error 055: start of function body without function header
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(2210) : error 010: invalid function or declaration
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(2212) : error 010: invalid function or declaration
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(2213) : error 010: invalid function or declaration
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(2215) : error 010: invalid function or declaration
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(2217) : error 010: invalid function or declaration
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(221 : error 010: invalid function or declaration
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(2220) : error 010: invalid function or declaration
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(2222) : error 010: invalid function or declaration
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(2223) : error 010: invalid function or declaration
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(2225) : error 021: symbol already defined: "cx"
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(2225) : error 021: symbol already defined: "cz"
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(2231) : error 010: invalid function or declaration
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(3375) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(3639) : warning 204: symbol is assigned a value that is never used: "cut"
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(20637) : warning 219: local variable "cx" shadows a variable at a preceding level
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(20637) : warning 219: local variable "cy" shadows a variable at a preceding level
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(20637) : warning 219: local variable "cz" shadows a variable at a preceding level
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(42365) : warning 219: local variable "cx" shadows a variable at a preceding level
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(42365) : warning 219: local variable "cy" shadows a variable at a preceding level
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(42365) : warning 219: local variable "cz" shadows a variable at a preceding level
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(44049) : warning 219: local variable "alarme" shadows a variable at a preceding level
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(44049) : warning 219: local variable "portas" shadows a variable at a preceding level
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(44049) : warning 219: local variable "capo" shadows a variable at a preceding level
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(44049) : warning 219: local variable "portamalas" shadows a variable at a preceding level
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(44073) : warning 203: symbol is never used: "SetWorld"
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(44073) : warning 203: symbol is never used: "cx"
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(44073) : warning 203: symbol is never used: "cy"
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(44073) : warning 203: symbol is never used: "cz"
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(42260) : warning 204: symbol is assigned a value that is never used: "roadblocktimer"
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(10135) : warning 204: symbol is assigned a value that is never used: "tugate"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


25 Errors.

veja o public todo
mas meti logo no inicio

PHP код:
public OnPlayerEnterVehicle(playeridvehicleidispassenger)

{
    if (
vehicleid == 40)
    {
        
AddVehicleComponent(vehicleid1079); // Cutte
    
}
    return 
1;
}

{
    if(
gTeam[playerid] >= 1||gTeam[playerid] >= 3||gTeam[playerid] >= 4)
    {
        if (
IsACopCar(vehicleid) && !ispassenger)
        {
            if(
PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==2||PlayerInfo[playerid][pLeader]==3||PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pMember]==3) {}
            else {
                
//WantedPoints[playerid]+=2;
                //SetPlayerCriminal(playerid,255, "Stealing A Police Vehicle");
                
new Float:cxFloat:cyFloat:cz;
                
GetPlayerPos(playeridcxcycz);
                
SetPlayerPos(playeridcx,  cycz);
            }
        }
        if (
IsNgCar(vehicleid) && !ispassenger)
        {
            if(
PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==2||PlayerInfo[playerid][pLeader]==3||PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pMember]==3) {}
            else {
                
//WantedPoints[playerid]+=2;
                //SetPlayerCriminal(playerid,255, "Stealing A Police Vehicle");
                
new Float:cxFloat:cyFloat:cz;
                
GetPlayerPos(playeridcxcycz);
                
SetPlayerPos(playeridcx,  cycz);
            }
            
        }
        
        {

        if (
IsAnAmbulance(vehicleid) && !ispassenger)
        {
            if(
PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4) { }
            else { 
WantedPoints[playerid]+=2SetPlayerCriminal(playerid,255"Roubos de uma ambulвncia"); }
        }
        if (
IsATank(vehicleid) && !ispassenger)
        {
            if(
PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==3||PlayerInfo[playerid][pMember]==3) {}
            else { 
WantedPoints[playerid]+=2SetPlayerCriminal(playerid,255"Roubos de um tanque"); SendClientMessage(playeridCOLOR_RED,"Vocк nгo sabe como conduzi-lo ainda."); }
        }
        if(
IsAnOwnableCar(vehicleid) && CarInfo[vehicleid][cLock] == && CarInfo[vehicleid][cOwned] == 1)
        {
            if(
PlayerInfo[playerid][pAdmin] >= 1337 && AdminDuty[playerid] == 1) { }
            else
            {
                new 
Float:cxFloat:cyFloat:cz;
                
GetPlayerPos(playeridcxcycz);
                
SetPlayerPos(playeridcxcycz);
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
[Ajuda]Componente - by [Dk]TuReTOo - 24.05.2011, 15:48
Re: [Duvida]Componente - by deregudegu - 24.05.2011, 15:55
Re: [Duvida]Componente - by [Dk]TuReTOo - 24.05.2011, 16:01
Re: [Duvida]Componente - by deregudegu - 24.05.2011, 16:10
Re: [Duvida]Componente - by [Dk]TuReTOo - 24.05.2011, 16:13
Re: [Duvida]Componente - by deregudegu - 24.05.2011, 16:41
Re: [Duvida]Componente - by The Knight - 24.05.2011, 19:48
Re: [Duvida]Componente - by DartakousLien - 24.05.2011, 20:46
Re: [Duvida]Componente - by deregudegu - 24.05.2011, 21:15

Forum Jump:


Users browsing this thread: 1 Guest(s)