Help with errors
#1

Can some one please help with this am lost


pawn Код:
D:\GTA SA\new rp\samp03z_svr_R1_win32\gamemodes\New.pwn(2827) : warning 202: number of arguments does not match definition
D:\GTA SA\new rp\samp03z_svr_R1_win32\gamemodes\New.pwn(2827) : warning 202: number of arguments does not match definition
D:\GTA SA\new rp\samp03z_svr_R1_win32\gamemodes\New.pwn(9230) : warning 202: number of arguments does not match definition
D:\GTA SA\new rp\samp03z_svr_R1_win32\gamemodes\New.pwn(9230) : warning 202: number of arguments does not match definition
D:\GTA SA\new rp\samp03z_svr_R1_win32\gamemodes\New.pwn(10182) : error 017: undefined symbol "IsPlayerInZone"
D:\GTA SA\new rp\samp03z_svr_R1_win32\gamemodes\New.pwn(10208) : error 017: undefined symbol "IsPlayerInZone"
D:\GTA SA\new rp\samp03z_svr_R1_win32\gamemodes\New.pwn(10209) : error 017: undefined symbol "IsPlayerInZone"
D:\GTA SA\new rp\samp03z_svr_R1_win32\gamemodes\New.pwn(10210) : error 017: undefined symbol "IsPlayerInZone"
D:\GTA SA\new rp\samp03z_svr_R1_win32\gamemodes\New.pwn(11596) : warning 202: number of arguments does not match definition
D:\GTA SA\new rp\samp03z_svr_R1_win32\gamemodes\New.pwn(11596) : warning 202: number of arguments does not match definition
D:\GTA SA\new rp\samp03z_svr_R1_win32\gamemodes\New.pwn(12101) : warning 213: tag mismatch
D:\GTA SA\new rp\samp03z_svr_R1_win32\gamemodes\New.pwn(12101) : error 001: expected token: ")", but found "["
D:\GTA SA\new rp\samp03z_svr_R1_win32\gamemodes\New.pwn(12101) : error 029: invalid expression, assumed zero
D:\GTA SA\new rp\samp03z_svr_R1_win32\gamemodes\New.pwn(12101) : warning 215: expression has no effect
D:\GTA SA\new rp\samp03z_svr_R1_win32\gamemodes\New.pwn(12101) : error 001: expected token: ";", but found "]"
D:\GTA SA\new rp\samp03z_svr_R1_win32\gamemodes\New.pwn(12101) : fatal error 107: too many error messages on one line
pawn Код:
if(Reporting[playerid]==1)
    {
    Reporting[playerid]=0;
        new zone[MAX_ZONE_NAME],str[128];
2827--> GetPlayer2DZone(playerid,zone,MAX_ZONE_NAME);
    format(str,sizeof(str),"[Report Preview]: %s",text);
        SendClientMessage(playerid,-1,str);
        for(new a=0;a<MAX_PLAYERS;a++)
        {
            if(IsPlayerConnectedEx(a))
            {
                if(PlayerOrgType(a)==LAW)
                {
                    format(str,sizeof(str),"[911 Emergency Report] %s : %s",PlayerName(playerid),text);
                    SendClientMessage(a,LRED,str);
                    format(str,sizeof(str),"Reported From Location: %s",zone);
                    SendClientMessage(a,-1,str);
                }
            }
        }
        return 0;
    }
pawn Код:
CMD:loc(playerid,params[])
{
    if(IsJailedOrMuted(playerid))return 1;
    if(PlayerOrgType(playerid)==LAW)
    {
        new player1,str[128];
        if(sscanf(params,"u",player1)) return SendClientMessage(playerid,GREY,"USAGE: /loc [playerid]");
        if(Suited[playerid]==0)return SendClientMessage(playerid,GREY,"You can perform organization commands only while suited up");
        if(IsPlayerConnectedEx(player1) ||  player1 !=playerid)
        {
            if(!IsCopCar(GetPlayerVehicleID(playerid)))return SendClientMessage(playerid,GREY,"You need to be in a police cruiser");
            if(GetPlayerWantedLevel(player1)>0)
            {
                if(Cell[playerid]==0||GetPlayerInterior(playerid)>0)return SendClientMessage(playerid,GREY,"The Player's location was not found");
                new zone[MAX_ZONE_NAME],string[30];
9230    -->         GetPlayer2DZone(player1,zone,MAX_ZONE_NAME);
                format(string,sizeof(string),"%s",zone);
                format(str,sizeof(str),"Location of %s : %s",PlayerName(playerid),string);
                SendClientMessage(playerid,BLUE,str);
            }else return SendClientMessage(playerid,GREY,"Player is not wanted");
        }
        else return SendClientMessage(playerid,GREY,"Invalid player ID");
    }else return SendClientMessage(playerid,GREY,"You are not a police officer");
    return 1;
}
pawn Код:
new Zone[MAX_ZONE_NAME];
                GetVehicleVelocity(GetPlayerVehicleID(playerid),svx[playerid],svy[playerid],svz[playerid]);
                sa1[playerid]=floatsqroot(((svx[playerid]*svx[playerid])+(svy[playerid]*svy[playerid]))+  (svz[playerid]*svz[playerid]))*100;
                sa2[playerid]=floatround(sa1[playerid],floatround_round);
                format(s3[playerid],128,"~b~Speed: ~w~%i mph",sa2[playerid]);
                TextDrawSetString(sdisplay[playerid],s3[playerid]);
    11596-->        GetPlayer2DZone(playerid,Zone,MAX_ZONE_NAME);
                format(string,sizeof(string),"~w~%s",Zone);
                TextDrawSetString(Zones[playerid],string);
                format(string,50,"~b~Fuel: ~w~%d Liters",fuel[GetPlayerVehicleID(playerid)]);
                TextDrawSetString(td_fuel[playerid],string);
                new engine,lights,alarm,doors,bonnet,boot,objective,Float:health;
                GetVehicleHealth(GetPlayerVehicleID(playerid),health);
                GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective);
                if(engine==1&&health<350)
pawn Код:
stock GetVehicle2DZone(vehicleid,zone[],len)
{
    new Float:x,Float:y,Float:z;
    GetVehiclePos(vehicleid,x,y,z);
    for(new i=0; i !=sizeof(SanAndreasZones); i++ )
    {
12101--->       if(x >=SanAndreasZones[i][SAZONE_AREA][0] && x <=SanAndreasZones[i][SAZONE_AREA][3] && y >=SanAndreasZones[i][SAZONE_AREA][1] && y <=SanAndreasZones[i][SAZONE_AREA][4])
        {
            return format(zone,len,SanAndreasZones[i][SAZONE_NAME],0);
        }
    }
    return 0;
}
Reply


Messages In This Thread
Help with errors - by semaj - 04.03.2015, 19:50
Re: Help with errors - by duteba - 04.03.2015, 19:56

Forum Jump:


Users browsing this thread: 2 Guest(s)