Some errors
#4

pawn Код:
new other2 = vehicle_sell_sender[playerid];
            new sellprice = vehicle_sell_price[playerid];
            new slot = vehicle_sell_offer[playerid];
            new str2[256];
            new name[MAX_PLAYER_NAME];
            new oname[MAX_PLAYER_NAME];
            GetCharacterName(playerid,name);
            GetCharacterName(other2,oname);
            if(response == 1)
            {

                if(GetDistanceBetweenPlayers(playerid,other2) < 7.5)
                {

                    if(CharacterInfo[playerid][active_character[playerid]][cMoney] >= sellprice)
                    {

                        format(str2,sizeof(str2),"Ai acceptat oferta lui %s pentru vehicul.",oname);
                        SendClientMessageA(playerid,COLOR_FACTION,str2);
                        format(str2,sizeof(str2),"%s a acceptat oferta in legatura cu vehiculul tau!",name);
                        SendClientMessageA(other2,COLOR_FACTION,str2);
                        VehicleInfo[slot][vOwner] = CharacterInfo[playerid][active_character[playerid]][cID];
                        format(VehicleInfo[slot][vOwnerName],MAX_PLAYER_NAME,"%s",name);
                        CharacterInfo[playerid][active_character[playerid]][cMoney] -= sellprice;
                        CharacterInfo[other2][active_character[other2]][cMoney] += sellprice;
                        PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
                        PlayerPlaySound(other2,1054,0.0,0.0,0.0);
                        format(str2,sizeof(str2),"ia contractul de vanzare-cumparare si il indreapta catre %s pentru a-l semna.",oname);
                        SendEmote(other2,str2);
                        format(str2,sizeof(str2),"semneaza contractul..");
                        SendEmote(playerid,str2);
                        LogVehicleTransfer(oname,name,sellprice,playerid);

                    }
                    else
                    {

                        SendClientMessage(playerid,COLOR_GREY,"Nu ai destui bani pentru a cumpara acest vehicul.");

                    }

                }
                else
                {

                    SendClientMessage(playerid,COLOR_GREY,"Nu esti langa acel player.");

                }

            }

pawn Код:
C:\Users\Filip\Desktop\SERVER\gamemodes\rp.pwn(16242) : error 017: undefined symbol "sellerid"
C:\Users\Filip\Desktop\SERVER\gamemodes\rp.pwn(16236) : warning 203: symbol is never used: "senderid"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Reply


Messages In This Thread
Some errors - by Jony_Cruze - 28.11.2013, 14:00
Re: Some errors - by xVIP3Rx - 28.11.2013, 14:09
Re: Some errors - by Konstantinos - 28.11.2013, 14:21
Re: Some errors - by Jony_Cruze - 28.11.2013, 14:42
Re: Some errors - by Konstantinos - 28.11.2013, 14:47
Re: Some errors - by Jony_Cruze - 28.11.2013, 14:53
Re: Some errors - by Konstantinos - 28.11.2013, 15:15
Re: Some errors - by Jony_Cruze - 28.11.2013, 16:05
Re: Some errors - by Konstantinos - 28.11.2013, 16:09
Re: Some errors - by Jony_Cruze - 28.11.2013, 16:34

Forum Jump:


Users browsing this thread: 1 Guest(s)