#1

D:\SAMP\samp\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "lights" shadows a variable at a preceding level
D:\SAMP\samp\gamemodes\originalbackup.pwn(89) : warning 201: redefinition of constant/macro (symbol "WHITE")
D:\SAMP\samp\gamemodes\originalbackup.pwn(90) : warning 201: redefinition of constant/macro (symbol "GREEN")
D:\SAMP\samp\gamemodes\originalbackup.pwn(91) : warning 201: redefinition of constant/macro (symbol "YELLOW")
D:\SAMP\samp\gamemodes\originalbackup.pwn(2516) : error 035: argument type mismatch (argument 1)
D:\SAMP\samp\gamemodes\originalbackup.pwn(3493) : error 035: argument type mismatch (argument 1)
D:\SAMP\samp\gamemodes\originalbackup.pwn(3495) : error 035: argument type mismatch (argument 1)
D:\SAMP\samp\gamemodes\originalbackup.pwn(3496) : error 035: argument type mismatch (argument 1)
D:\SAMP\samp\gamemodes\originalbackup.pwn(499 : warning 219: local variable "model" shadows a variable at a preceding level
D:\SAMP\samp\gamemodes\originalbackup.pwn(4999) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(4999) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5000) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5000) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5001) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5001) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5002) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5002) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5003) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5003) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5004) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5004) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5005) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5005) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5006) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5006) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5007) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5007) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(500 : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(500 : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5009) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5009) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5010) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5010) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5011) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5011) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5012) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5012) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5013) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5013) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5014) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5014) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5015) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5015) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5016) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5016) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5017) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5017) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(501 : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(501 : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5019) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5019) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5020) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5020) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5021) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5021) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5022) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5022) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5023) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5023) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5024) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5024) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5025) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5025) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5026) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5026) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5027) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5027) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(502 : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(502 : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5029) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5029) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5030) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5030) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5031) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5031) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5032) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5032) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5033) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(5033) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(499 : warning 204: symbol is assigned a value that is never used: "model"
D:\SAMP\samp\gamemodes\originalbackup.pwn(6003) : error 017: undefined symbol "WHITES"
D:\SAMP\samp\gamemodes\originalbackup.pwn(9163) : error 017: undefined symbol "x"
D:\SAMP\samp\gamemodes\originalbackup.pwn(9163) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(9165) : error 017: undefined symbol "y"
D:\SAMP\samp\gamemodes\originalbackup.pwn(9165) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(9167) : error 017: undefined symbol "z"
D:\SAMP\samp\gamemodes\originalbackup.pwn(9167) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(9173) : error 017: undefined symbol "a"
D:\SAMP\samp\gamemodes\originalbackup.pwn(9173) : warning 213: tag mismatch
D:\SAMP\samp\gamemodes\originalbackup.pwn(9217) : error 017: undefined symbol "x"
D:\SAMP\samp\gamemodes\originalbackup.pwn(13687) : error 035: argument type mismatch (argument 1)
D:\SAMP\samp\gamemodes\originalbackup.pwn(1368 : error 035: argument type mismatch (argument 1)
D:\SAMP\samp\gamemodes\originalbackup.pwn(13716) : error 035: argument type mismatch (argument 1)
D:\SAMP\samp\gamemodes\originalbackup.pwn(13717) : error 035: argument type mismatch (argument 1)
D:\SAMP\samp\gamemodes\originalbackup.pwn(13722) : error 017: undefined symbol "vehicleid"
D:\SAMP\samp\gamemodes\originalbackup.pwn(13746) : error 017: undefined symbol "vehicleid"
D:\SAMP\samp\gamemodes\originalbackup.pwn(1374 : error 017: undefined symbol "vehicleid"
D:\SAMP\samp\gamemodes\originalbackup.pwn(13753) : error 017: undefined symbol "vehicleid"
D:\SAMP\samp\gamemodes\originalbackup.pwn(13754) : error 017: undefined symbol "vehicleid"
D:\SAMP\samp\gamemodes\originalbackup.pwn(13755) : error 017: undefined symbol "vehicleid"
D:\SAMP\samp\gamemodes\originalbackup.pwn(13756) : error 017: undefined symbol "vehicleid"
D:\SAMP\samp\gamemodes\originalbackup.pwn(1375 : error 017: undefined symbol "WHITES"
D:\SAMP\samp\gamemodes\originalbackup.pwn(13770) : error 035: argument type mismatch (argument 1)
D:\SAMP\samp\gamemodes\originalbackup.pwn(13771) : error 035: argument type mismatch (argument 1)
D:\SAMP\samp\gamemodes\originalbackup.pwn(13783) : error 017: undefined symbol "vehicleid"
D:\SAMP\samp\gamemodes\originalbackup.pwn(13784) : error 017: undefined symbol "vehicleid"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.

help pls
Reply
#2

Show the code please and use [pawn] tags.
Reply
#3

How do you expect us to fix your code, when you don't give us your code?
Reply
#4

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new personalcar = (dini_Int(PFile(playerid),"CarID"));
    for(new i=0; i < MAX_PLAYERS; i++)
    {
    if(GetCreatorID(vehicleid)!=0)
    {
    if (personalcar == vehicleid)
    {
    SetVehicleParamsForPlayer(vehicleid,i,0,0);
    }
    else
    {
    if (VehicleSystem[vehicleid][cLock]==0)
    {
    SetVehicleParamsForPlayer(vehicleid,i,0,1);
    }
    else if (VehicleSystem[vehicleid][cLock]==1)
    {
    SetVehicleParamsForPlayer(vehicleid,i,0,0);
    }
    }
    }
    return 1;
}
    if(IsACharacter(playerid))
    {
        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 {
                new Float:cx, Float:cy, Float:cz;
                GetPlayerPos(playerid, cx, cy, cz);
                SetPlayerPos(playerid, cx,  cy, cz);
            }
        }
        if (IsAnAmbulance(vehicleid) && !ispassenger)
        {
            if(PlayerInfo[playerid][pLeader]==4||PlayerInfo[playerid][pMember]==4) {}
            else {
                new Float:cx, Float:cy, Float:cz;
                GetPlayerPos(playerid, cx, cy, cz);
                SetPlayerPos(playerid, cx,  cy, cz);
            }
        }
        if (IsACivCar(vehicleid) && !ispassenger)
        {
            if(PlayerInfo[playerid][pLeader]>= 0 ||PlayerInfo[playerid][pMember]>=0) {}
            else {
                new Float:cx, Float:cy, Float:cz;
                GetPlayerPos(playerid, cx, cy, cz);
                SetPlayerPos(playerid, cx,  cy, cz);
            }
        }
        if (IsALcnCar(vehicleid) && !ispassenger)
        {
            if(PlayerInfo[playerid][pLeader]==5||PlayerInfo[playerid][pMember]==5) {}
            else {
                new Float:cx, Float:cy, Float:cz;
                GetPlayerPos(playerid, cx, cy, cz);
                SetPlayerPos(playerid, cx,  cy, cz);
            }
        }
        if (IsAYkzCar(vehicleid) && !ispassenger)
        {
            if(PlayerInfo[playerid][pLeader]==6||PlayerInfo[playerid][pMember]==6) {}
            else {
                new Float:cx, Float:cy, Float:cz;
                GetPlayerPos(playerid, cx, cy, cz);
                SetPlayerPos(playerid, cx,  cy, cz);
            }
        }
        if (IsAHitmanCar(vehicleid) && !ispassenger)
        {
            if(PlayerInfo[playerid][pLeader]==8||PlayerInfo[playerid][pMember]==8) {}
            else {
                new Float:cx, Float:cy, Float:cz;
                GetPlayerPos(playerid, cx, cy, cz);
                SetPlayerPos(playerid, cx,  cy, cz);
            }
        }
        if (IsANewsCar(vehicleid) && !ispassenger)
        {
            if(PlayerInfo[playerid][pLeader]==9||PlayerInfo[playerid][pMember]==9) {}
            else {
                new Float:cx, Float:cy, Float:cz;
                GetPlayerPos(playerid, cx, cy, cz);
                SetPlayerPos(playerid, cx,  cy, cz);
            }
        }
        if (IsATaxiCar(vehicleid) && !ispassenger)
        {
            if(PlayerInfo[playerid][pLeader]==10||PlayerInfo[playerid][pMember]==10) {}
            else {
                new Float:cx, Float:cy, Float:cz;
                GetPlayerPos(playerid, cx, cy, cz);
                SetPlayerPos(playerid, cx,  cy, cz);
            }
        }
        if (IsAnInstructorCar(vehicleid) && !ispassenger)
        {
            if(PlayerInfo[playerid][pLeader]==11||PlayerInfo[playerid][pMember]==11) {}
            else {
                new Float:cx, Float:cy, Float:cz;
                GetPlayerPos(playerid, cx, cy, cz);
                SetPlayerPos(playerid, cx,  cy, cz);
            }
        }
        if (IsABloodsCar(vehicleid) && !ispassenger)
        {
            if(PlayerInfo[playerid][pLeader]==12||PlayerInfo[playerid][pMember]==12) {}
            else {
                new Float:cx, Float:cy, Float:cz;
                GetPlayerPos(playerid, cx, cy, cz);
                SetPlayerPos(playerid, cx,  cy, cz);
            }
        }
        if (IsACripsCar(vehicleid) && !ispassenger)
        {
            if(PlayerInfo[playerid][pLeader]==13||PlayerInfo[playerid][pMember]==13) {}
            else {
                new Float:cx, Float:cy, Float:cz;
                GetPlayerPos(playerid, cx, cy, cz);
                SetPlayerPos(playerid, cx,  cy, cz);
            }
        }
        if (IsANortenosCar(vehicleid) && !ispassenger)
        {
            if(PlayerInfo[playerid][pLeader]==14||PlayerInfo[playerid][pMember]==14) {}
            else {
                new Float:cx, Float:cy, Float:cz;
                GetPlayerPos(playerid, cx, cy, cz);
                SetPlayerPos(playerid, cx,  cy, cz);
            }
        }
        if (IsASurenosCar(vehicleid) && !ispassenger)
        {
            if(PlayerInfo[playerid][pLeader]==15||PlayerInfo[playerid][pMember]==15) {}
            else {
                new Float:cx, Float:cy, Float:cz;
                GetPlayerPos(playerid, cx, cy, cz);
                SetPlayerPos(playerid, cx,  cy, cz);
            }
        }
        if (IsAGrooveCar(vehicleid) && !ispassenger)
        {
            if(PlayerInfo[playerid][pLeader]==16||PlayerInfo[playerid][pMember]==16) {}
            else {
                new Float:cx, Float:cy, Float:cz;
                GetPlayerPos(playerid, cx, cy, cz);
                SetPlayerPos(playerid, cx,  cy, cz);
            }
        }
        if (IsABallasCar(vehicleid) && !ispassenger)
        {
            if(PlayerInfo[playerid][pLeader]==17||PlayerInfo[playerid][pMember]==17) {}
            else {
                new Float:cx, Float:cy, Float:cz;
                GetPlayerPos(playerid, cx, cy, cz);
                SetPlayerPos(playerid, cx,  cy, cz);
            }
        }
        if (IsAFmaCar(vehicleid) && !ispassenger)
        {
            if(PlayerInfo[playerid][pLeader]==18||PlayerInfo[playerid][pMember]==18) {}
            else {
                new Float:cx, Float:cy, Float:cz;
                GetPlayerPos(playerid, cx, cy, cz);
                SetPlayerPos(playerid, cx,  cy, cz);
            }
        }
        if (IsADmvCar(vehicleid) && !ispassenger)
        {
            if(TakingLesson[playerid] == 1)
            {
            }
            else
            {
                new Float:cx, Float:cy, Float:cz;
                GetPlayerPos(playerid, cx, cy, cz);
                SetPlayerPos(playerid, cx,  cy, cz);
            }
        }
    }
    return 1;
}
OnPlayerEnterVehicle problem, what wrong?
Reply
#5

The errors aren't originating from there...
Reply
#6

pawn Код:
2516 - new personalcar = (dini_Int(PFile(playerid),"CarID"));
3493 -     if(!dini_Exists(PFile(playerid)))
3495 -      dini_Create(PFile(playerid));
3496 -      dini_IntSet(PFile(playerid),"HaveCar",0);
9163 -  format(loader,sizeof(loader),"veh_x_%d",i);
9165 -  format(loader,sizeof(loader),"veh_y_%d",i);
9167 -  format(loader,sizeof(loader),"veh_z_%d",i);
9173 -  format(loader,sizeof(loader),"veh_a_%d",i);
Reply
#7

Errors solved.

pawn Код:
D:\SAMP\samp\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "lights" shadows a variable at a preceding level
D:\SAMP\samp\gamemodes\originalbackup.pwn(89) : warning 201: redefinition of constant/macro (symbol "WHITE")
D:\SAMP\samp\gamemodes\originalbackup.pwn(90) : warning 201: redefinition of constant/macro (symbol "GREEN")
D:\SAMP\samp\gamemodes\originalbackup.pwn(91) : warning 201: redefinition of constant/macro (symbol "YELLOW")
D:\SAMP\samp\gamemodes\originalbackup.pwn(4999) : warning 219: local variable "model" shadows a variable at a preceding level

D:\SAMP\samp\gamemodes\originalbackup.pwn(4999) : warning 204: symbol is assigned a value that is never used: "model"
D:\SAMP\samp\gamemodes\originalbackup.pwn(30182) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase
Reply
#8

warning 201: redefinition of constant/macro (symbol "WHITE")
warning 201: redefinition of constant/macro (symbol "GREEN")
warning 201: redefinition of constant/macro (symbol "YELLOW")

they are wrongly defined!
vehicleid makes shadows so you can delete it..
model delete it too. //Isn't used in code...
Reply
#9

You have defined ''Yellow, green and white'' twice?

Try searching for them and if you did define them twice, remove the other ones
Reply
#10

D:\SAMP\samp\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "lights" shadows a variable at a preceding level
D:\SAMP\samp\gamemodes\originalbackup.pwn(30182) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.

Why?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)