Jump to content
  • 0

Problema


NoNameDx

Question

Salut am si eu o problemă daca dau compile cu pawno/subilme imi apar niste probleme...codul sursa e ultimul.

Eroarea de la randul 32525 e marcată cu Aici e problema in codul sursă.

Pawno:

D:\Global\gm1\pawno\include\YSI\y_debug.inc(282) : warning 219: local variable "n" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(16078) : warning 202: number of arguments does not match definition
D:\Global\gm1\gamemodes\gm.pwn(16112) : warning 219: local variable "veh" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(22239) : warning 204: symbol is assigned a value that is never used: "local"
D:\Global\gm1\gamemodes\gm.pwn(26950) : warning 217: loose indentation
D:\Global\gm1\gamemodes\gm.pwn(32524) : error 075: input line too long (after substitutions)
D:\Global\gm1\gamemodes\gm.pwn(32525) : error 037: invalid string (possibly non-terminated string)
D:\Global\gm1\gamemodes\gm.pwn(32525) : error 017: undefined symbol "This"
D:\Global\gm1\gamemodes\gm.pwn(32525) : error 017: undefined symbol "c"
D:\Global\gm1\gamemodes\gm.pwn(32525) : fatal error 107: too many error messages on one line

 

Sublime:

D:\Global\gm1\pawno\include\YSI\y_debug.inc(282) : warning 219: local variable "n" shadows a variable at a preceding level
D:\Global\gm1\pawno\include\mSelection.inc(207) : warning 219: local variable "x" shadows a variable at a preceding level
D:\Global\gm1\pawno\include\mSelection.inc(222) : warning 219: local variable "x" shadows a variable at a preceding level
D:\Global\gm1\pawno\include\mSelection.inc(426) : warning 219: local variable "x" shadows a variable at a preceding level
D:\Global\gm1\pawno\include\mSelection.inc(556) : warning 219: local variable "x" shadows a variable at a preceding level
D:\Global\gm1\pawno\include\fly.inc(43) : warning 219: local variable "x" shadows a variable at a preceding level
D:\Global\gm1\pawno\include\fly.inc(43) : warning 219: local variable "y" shadows a variable at a preceding level
D:\Global\gm1\pawno\include\fly.inc(58) : warning 219: local variable "x" shadows a variable at a preceding level
D:\Global\gm1\pawno\include\fly.inc(58) : warning 219: local variable "y" shadows a variable at a preceding level
D:\Global\gm1\pawno\include\fly.inc(106) : warning 219: local variable "x" shadows a variable at a preceding level
D:\Global\gm1\pawno\include\fly.inc(106) : warning 219: local variable "y" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(23) : error 017: undefined symbol "AntiDeAMX"
D:\Global\gm1\gamemodes\gm.pwn(3824) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(4800) : warning 219: local variable "hour" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(4800) : warning 219: local variable "minute" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(5696) : error 004: function "cUpdate" is not implemented
D:\Global\gm1\gamemodes\gm.pwn(5702) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(5714) : error 017: undefined symbol "Carspeed"
D:\Global\gm1\gamemodes\gm.pwn(6318) : error 017: undefined symbol "SetPlayerPosEx"
D:\Global\gm1\gamemodes\gm.pwn(6336) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(6741) : warning 219: local variable "time" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(6743) : warning 219: local variable "minute" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(6746) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(6796) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(7029) : warning 219: local variable "x" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(7029) : warning 219: local variable "y" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(7442) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(7454) : warning 219: local variable "health" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(7457) : error 017: undefined symbol "GetPlayerHealthEx"
D:\Global\gm1\gamemodes\gm.pwn(7462) : error 017: undefined symbol "Carspeed"
D:\Global\gm1\gamemodes\gm.pwn(8433) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(8458) : warning 219: local variable "x" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(8534) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(8564) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(8577) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(8585) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(8593) : error 004: function "ProxDetector" is not implemented
D:\Global\gm1\gamemodes\gm.pwn(8600) : error 004: function "ProxDetector" is not implemented
D:\Global\gm1\gamemodes\gm.pwn(8616) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(8722) : error 017: undefined symbol "HideGunTextdraws"
D:\Global\gm1\gamemodes\gm.pwn(8754) : error 017: undefined symbol "HideGunTextdraws"
D:\Global\gm1\gamemodes\gm.pwn(8760) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(8765) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(8881) : error 004: function "InsertCar" is not implemented
D:\Global\gm1\gamemodes\gm.pwn(9065) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(9571) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(9590) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(9613) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(9664) : warning 219: local variable "x" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(9682) : error 017: undefined symbol "NumIp"
D:\Global\gm1\gamemodes\gm.pwn(9699) : error 017: undefined symbol "AntiFlood_InitPlayer"
D:\Global\gm1\gamemodes\gm.pwn(11573) : error 017: undefined symbol "ClearWanted"
D:\Global\gm1\gamemodes\gm.pwn(11601) : error 017: undefined symbol "BanCheck"
D:\Global\gm1\gamemodes\gm.pwn(11609) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(11660) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(11742) : error 017: undefined symbol "SavePlayerClothes"
D:\Global\gm1\gamemodes\gm.pwn(11747) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(11753) : error 004: function "CrimInRange" is not implemented
D:\Global\gm1\gamemodes\gm.pwn(11797) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(11934) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(11987) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(12008) : error 017: undefined symbol "SetPlayerArmourEx"
D:\Global\gm1\gamemodes\gm.pwn(12194) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(12233) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(12282) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(12300) : warning 219: local variable "y" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(12300) : warning 219: local variable "h" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(12330) : error 004: function "ProxDetector" is not implemented
D:\Global\gm1\gamemodes\gm.pwn(12377) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Global\gm1\gamemodes\gm.pwn(12386) : error 004: function "ProxDetector" is not implemented
D:\Global\gm1\gamemodes\gm.pwn(12429) : error 017: undefined symbol "SetPlayerPosEx"
D:\Global\gm1\gamemodes\gm.pwn(12443) : error 017: undefined symbol "SetPlayerArmourEx"
D:\Global\gm1\gamemodes\gm.pwn(12488) : error 017: undefined symbol "SetPlayerPosEx"
D:\Global\gm1\gamemodes\gm.pwn(12512) : error 017: undefined symbol "SetPlayerPosEx"
D:\Global\gm1\gamemodes\gm.pwn(12537) : error 017: undefined symbol "SetPlayerPosEx"
D:\Global\gm1\gamemodes\gm.pwn(12562) : error 017: undefined symbol "SetPlayerPosEx"

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
[Finished in 70.7s with exit code 1]
[cmd: ['pawncc.exe', '-i includes', 'D:\\Global\\gm1\\gamemodes\\gm.pwn', '-;+']]
[dir: D:\Global\gm1\gamemodes]
[path: C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\AMD\ATI.ACE\Core-Static]

 

Cod:

CMD:selltods(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first.");
    if(PinLogged[playerid] == 0) return SCM(playerid, COLOR_LIGHTRED,"Trebuie sa  introduci pin-ul mai intai.(/pin)sau sa iti setezi un pin /setpin");
    if(IsPlayerConnected(playerid))
    {
        if(!IsPlayerInRangeOfPoint(playerid, 10.0, 1302.4266,-1431.6708,13.5280)) return SCM(playerid,COLOR_WHITE,"{FFB870}You're at the place where you can sell your car.");
        new vehh = GetPlayerVehicleID(playerid),query[256],value,found;
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not in your car.");
        for(new v; v < PlayerInfo[playerid][pCarSlots]; v++)
        {
            if(PlayerInfo[playerid][pCarID][v] == vehh)
            {
                format(query, sizeof(query), "SELECT * FROM `stock` WHERE `vid`='%d'", PlayerInfo[playerid][pCarModel][v]);
                new Cache: result = mysql_query(SQL, query);
                for(new i, j = cache_get_row_count (); i != j; ++i)
                {
                    value = cache_get_field_content_int(i, "Price");
                }
                cache_delete(result);

 


                //Aici e problema//  if(PlayerInfo[playerid][pCarModel][v] == 469 || PlayerInfo[playerid][pCarModel][v] == 487 || PlayerInfo[playerid][pCarModel][v] == 409 || PlayerInfo[playerid][pCarModel][v] == 494 || PlayerInfo[playerid][pCarModel][v] == 502 || PlayerInfo[playerid][pCarModel][v] == 503 || PlayerInfo[playerid][pCarModel][v] == 539 || PlayerInfo[playerid][pCarModel][v] == 444 || PlayerInfo[playerid][pCarModel][v] == 556 || PlayerInfo[playerid][pCarModel][v] == 557) return SendClientMessage(playerid, COLOR_WHITE, "This car can't be sold to the DealerShip.");

 


                new cashveh,string[80];
                CarID[playerid] = PlayerInfo[playerid][pCarID][v];
                cashveh = floatround(floatmul(value,0.60),floatround_ceil);
                format(string,sizeof(string),"Do you want to sell your car to the Dealership for $%s?",FormatNumber(cashveh));
                ShowPlayerDialog(playerid, DIALOG_CARSELL, DIALOG_STYLE_MSGBOX, "/sellcar", string, "Yes", "No");
                found = 1;
            }
        }
        if(found == 0) return SendClientMessage(playerid, COLOR_GREY, "You are not in your car.");
    }
    return 1;
}

Edited by NoNameDx
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.