Need help!! [+REP]
#1

When someone try to sell a car to someone else you can offer the other player to buy the car but the player cannot /accept ownablecar so i come here for your help!

pawn Код:
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 if(PlayerInfo[giveplayerid][pPcarkey3] == 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][pPcarkey4] == 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][pPcarkey5] == 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;
                                }
                            }
                        }
here is the /accept ownablecar
Reply
#2

Hello, im the new oowner for this server and we still need an anwser on this question. thanks
Reply
#3

Quote:
Originally Posted by Don_Cage
Посмотреть сообщение
Hello, im the new oowner for this server and we still need an anwser on this question. thanks
Oh yeah ? Proove it.
Reply
#4

if Shayaziz come on and say yes thats enough proof?
Reply
#5

Paste your /accept code
Reply
#6

this is the /accept ownablecar
Reply
#7

so anyone can help?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)