My /v sellto dosnt work..
#1

Hello everyone..
The command to sell his car to another player does not work for me, i have tried to fix it but since im not a very skilled scripter i cant see the whats wrong with it.. The problem is that when you type the command nothing happens, it dosnt even say that it dosnt work, just nothing so i was hoping you could help me fix this.
pawn Код:
else if(strcmp(x_nr,"sellto",true) == 0)
            {
                if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2])
                {
                    new ownvehkey;
                    if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { ownvehkey = PlayerInfo[playerid][pPcarkey]; }
                    else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { ownvehkey = PlayerInfo[playerid][pPcarkey2]; }
                    else { return 1; }
                    if(strcmp(sendername, CarInfo[ownvehkey][cOwner], true) == 0)
                    {
                        tmp = strtok(cmdtext, idx);
                        if(!strlen(tmp))
                        {
                            SendClientMessage(playerid, COLOR_WHITE, "HINT: /v sellto [playerid/PartOfName] [price]");
                            return 1;
                        }
                        giveplayerid = ReturnUser(tmp);
                        if(IsPlayerConnected(giveplayerid))
                        {
                            if(giveplayerid != INVALID_PLAYER_ID)
                            {
                                if(ProxDetectorS(8.0, playerid, giveplayerid))
                                {
                                    if(PlayerInfo[giveplayerid][pPcarkey] == 9999)
                                    {
                                        tmp = strtok(cmdtext, idx);
                                        if(!strlen(tmp))
                                        {
                                            SendClientMessage(playerid, COLOR_WHITE, "HINT: /v sellto [playerid/PartOfName] [price]");
                                            return 1;
                                        }
                                        new price;
                                        price = strval(tmp);
                                        if(price < 1 || price > 1500000)
                                        {
                                            SendClientMessage(playerid, COLOR_GREY, "Price not lower then 1 and not higher then 1500000. ");
                                            return 1;
                                        }
                                        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                                        format(string, sizeof(string), "* You offerd %s to buy your car for $%d .", giveplayer, price);
                                        SendClientMessage(playerid, COLOR_WHITE, string);
                                        format(string, sizeof(string), "* Car Owner %s offered you to buy his/her car for $%d (type /accept ownablecar) to buy.", playername, price);
                                        SendClientMessage(giveplayerid, COLOR_WHITE, string);
                                        OwnableCarOffer[giveplayerid] = playerid;
                                        OwnableCarID[giveplayerid] = ownvehkey;
                                        OwnableCarPrice[giveplayerid] = price;
                                        return 1;
                                    }
                                }
                                else if(PlayerInfo[giveplayerid][pPcarkey2] == 9999)
                                {
                                    tmp = strtok(cmdtext, idx);
                                    if(!strlen(tmp))
                                    {
                                        SendClientMessage(playerid, COLOR_WHITE, "HINT: /v sellto [playerid/PartOfName] [price]");
                                        return 1;
                                    }
                                    new price;
                                    price = strval(tmp);
                                    if(price < 1 || price > 1500000)
                                    {
                                        SendClientMessage(playerid, COLOR_GREY, "  Price not lower then 1 and not higher then 1500000. ");
                                        return 1;
                                    }
                                    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                                    format(string, sizeof(string), "* You offerd %s to buy your car for $%d .", giveplayer, price);
                                    SendClientMessage(playerid, COLOR_WHITE, string);
                                    format(string, sizeof(string), "* Car Owner %s offered you to buy his/her car for $%d (type /accept ownablecar) to buy.", playername, price);
                                    SendClientMessage(giveplayerid, COLOR_WHITE, string);
                                    OwnableCarOffer[giveplayerid] = playerid;
                                    OwnableCarID[giveplayerid] = ownvehkey;
                                    OwnableCarPrice[giveplayerid] = price;
                                    return 1;
                                }
                            }
                        }
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_GREY, "  This is not your car");
                        return 1;
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "  You have to sit at your own car to sell it");
                    return 1;
                }
            }
Reply
#2

bump
Reply
#3

Looked it through, couldnt find any mistakes. Do the other commands under that tree work?
Reply
#4

Uhm , first of all dont ask questions about my script u shoudnt have it . Why you even run a server if you are unable to fix such a small problem , anyway if i see more of this i will report you for using a stolen scipt wich is against the samp rules don . Reply from dylan
Reply
#5

Yes, everything else works
Quote:
Originally Posted by kepa333
Посмотреть сообщение
Uhm , first of all dont ask questions about my script u shoudnt have it . Why you even run a server if you are unable to fix such a small problem , anyway if i see more of this i will report you for using a stolen scipt wich is against the samp rules don . Reply from dylan
This isnt stolen... you GAVE me the script so i could continue with the server + the script is edited pretty much since you GAVE me it...
Reply
#6

Never gave anything , secondly adding maps and filterscripts and changing colors isnt editing. My stuff is still in there so its always my property and from hellman. And matic
Reply
#7

So after all the edits ive made on your things this is MY script BASED on yours! So if you just gonna cry about how much you couldnt handle to keep it updated you dont need to post.. i post here for help not complains
Reply
#8

Quote:
Originally Posted by kepa333
Посмотреть сообщение
Never gave anything , secondly adding maps and filterscripts and changing colors isnt editing. My stuff is still in there so its always my property and from hellman. And matic
never gave anything? then how come i have it? oh right.. i guess i hacked into your pc and stole everything you have there.. i mean since i wouldnt even be able to hack my own email lol... and yes SOME of your stuffs is in there and i think ive seen 2 things matic made and they all say "edited by Boyka" Boyka aka you so then i guess matic didnt do a shiz.. and what about Hellman? he made it from the start so i guess its not your either since his stuffs is still in it..
A filterscript isnt added in the mode so why you even bringing that up? and colors i have changed yes to make FBI more "undercover" the other things ive made is edited almost every faction, added senate, fixed /v paintjob (wich you worked on for months but still couldnt fix)... fixed equipment bug(wich you couldnt fix), fixed government(wich you was too "lazy" to do), made a invite command for government(you couldnt) and btw i removed mapping not added.. Want me to continue?
Reply
#9

Quote:
Originally Posted by Don_Cage
Посмотреть сообщение
never gave anything? then how come i have it? oh right.. i guess i hacked into your pc and stole everything you have there.. i mean since i wouldnt even be able to hack my own email lol... and yes SOME of your stuffs is in there and i think ive seen 2 things matic made and they all say "edited by Boyka" Boyka aka you so then i guess matic didnt do a shiz.. and what about Hellman? he made it from the start so i guess its not your either since his stuffs is still in it..
A filterscript isnt added in the mode so why you even bringing that up? and colors i have changed yes to make FBI more "undercover" the other things ive made is edited almost every faction, added senate, fixed /v paintjob (wich you worked on for months but still couldnt fix)... fixed equipment bug(wich you couldnt fix), fixed government(wich you was too "lazy" to do), made a invite command for government(you couldnt) and btw i removed mapping not added.. Want me to continue?
This made me LMAO , I was tired of scripting 24/7 but guess what all those things u just named are fixed included all other bugs , maybe u shoud shut your mouth becouse this hole message doesnt make sence i coud fix them all but i didnt had time for it and i didnt feel like doing it so stfu , secondly we got a hole new vehicle/equipment system wich include reloading and putting cars so gtfo twat.
Reply
#10

Quote:
Originally Posted by kepa333
Посмотреть сообщение
This made me LMAO , I was tired of scripting 24/7 but guess what all those things u just named are fixed included all other bugs , maybe u shoud shut your mouth becouse this hole message doesnt make sence i coud fix them all but i didnt had time for it and i didnt feel like doing it so stfu , secondly we got a hole new vehicle/equipment system wich include reloading and putting cars so gtfo twat.
Dude i think im LMAO more then you did since you allways go with vehicle system when you are lying and want it to sound impressive + im guessing that you are using the script matic have and all that things you said was fixed HE asked me to fix
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)