[AJUDA] /veiculo comprar
#1

Estou com Problemas no /Veiculo comprar Pois antes o Problema era Player Free Dava Sim e Num comprava so saia andando com veiculo quando arrumei o player free nun pode andar so o vip mais num da pro player vip comprar o veiculo e o player vip Pode sair andando com o veiculo sem comprar..

pawn Код:
if(strcmp(tmp, "comprar", true) == 0)
        {
            if(IsPlayerConnected(playerid))
            {
            if(PlayerInfo[playerid][pVIP] < 3)
            RemovePlayerFromVehicle(playerid);
            {
            SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й VIP");
            return 1;
            }
                for(new i = 0; i < sizeof(CarInfo); i++)
                {
                    if(CarInfo[i][ownedvehicle] == vehid)
                    {
                        if(PlayerInfo[playerid][pCarKey]!=0)
                        RemovePlayerFromVehicle(playerid);
                        {
                            SendClientMessage(playerid, COLOR_GREY, "vocк ja tem um Veiculo (/veiculo vender)");
                            return 1;
                        }
                        if(CarInfo[i][cOwned]==1)
                        {
                            SendClientMessage(playerid, COLOR_GREY, "Este Veiculo ja tem dono");
                            return 1;
                        }
                        if(GetPlayerMoney(playerid) >= CarInfo[i][cValue])
                        {
                            PlayerInfo[playerid][pCarKey] = vehid;
                            PlayerInfo[playerid][pVeiculo] = i;
                            CarInfo[i][cOwned] = 1;
                            CarOffered[playerid]=0;
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            strmid(CarInfo[i][cOwner], sendername, 0, strlen(sendername), 999);
                            GivePlayerMoney(playerid,-CarInfo[i][cValue]);
                            GameTextForPlayer(playerid, "~w~Parabens~n~Voce comprou esse Veiculo!", 5000, 3);
                            SendClientMessage(playerid, COLOR_GRAD2, "parabens pela a sua compra!!");
                            SendClientMessage(playerid, COLOR_GRAD2, "USE: /Veiculo ajuda para ver os comandos");
                            TogglePlayerControllable(playerid, 1);
                            SaveCars();
                            return 1;
                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_GREY, "   Vocк nгo tem dinheiro para isso!");
                            return 1;
                        }
                    }
                }
            }
            return 1;
        }
Reply
#2

Quote:
Originally Posted by Renato_Silva
Посмотреть сообщение
Estou com Problemas no /Veiculo comprar Pois antes o Problema era Player Free Dava Sim e Num comprava so saia andando com veiculo quando arrumei o player free nun pode andar so o vip mais num da pro player vip comprar o veiculo e o player vip Pode sair andando com o veiculo sem comprar..

pawn Код:
if(strcmp(tmp, "comprar", true) == 0)
        {
            if(IsPlayerConnected(playerid))
            {
            if(PlayerInfo[playerid][pVIP] < 3)
            RemovePlayerFromVehicle(playerid);
            {
            SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й VIP");
            return 1;
            }
                for(new i = 0; i < sizeof(CarInfo); i++)
                {
                    if(CarInfo[i][ownedvehicle] == vehid)
                    {
                        if(PlayerInfo[playerid][pCarKey]!=0)
                        RemovePlayerFromVehicle(playerid);
                        {
                            SendClientMessage(playerid, COLOR_GREY, "vocк ja tem um Veiculo (/veiculo vender)");
                            return 1;
                        }
                        if(CarInfo[i][cOwned]==1)
                        {
                            SendClientMessage(playerid, COLOR_GREY, "Este Veiculo ja tem dono");
                            return 1;
                        }
                        if(GetPlayerMoney(playerid) >= CarInfo[i][cValue])
                        {
                            PlayerInfo[playerid][pCarKey] = vehid;
                            PlayerInfo[playerid][pVeiculo] = i;
                            CarInfo[i][cOwned] = 1;
                            CarOffered[playerid]=0;
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            strmid(CarInfo[i][cOwner], sendername, 0, strlen(sendername), 999);
                            GivePlayerMoney(playerid,-CarInfo[i][cValue]);
                            GameTextForPlayer(playerid, "~w~Parabens~n~Voce comprou esse Veiculo!", 5000, 3);
                            SendClientMessage(playerid, COLOR_GRAD2, "parabens pela a sua compra!!");
                            SendClientMessage(playerid, COLOR_GRAD2, "USE: /Veiculo ajuda para ver os comandos");
                            TogglePlayerControllable(playerid, 1);
                            SaveCars();
                            return 1;
                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_GREY, "   Vocк nгo tem dinheiro para isso!");
                            return 1;
                        }
                    }
                }
            }
            return 1;
        }
Tenta assim у:
pawn Код:
if(strcmp(tmp, "comprar", true) == 0)
        {
            if(IsPlayerConnected(playerid))
            RemovePlayerFromVehicle(playerid);
            {
            SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й VIP");
            return 1;
            }
            if(PlayerInfo[playerid][pVIP] < 3)
                for(new i = 0; i < sizeof(CarInfo); i++)
                {
                    if(CarInfo[i][ownedvehicle] == vehid)
                    {
                        if(PlayerInfo[playerid][pCarKey]!=0)
                        RemovePlayerFromVehicle(playerid);
                        {
                            SendClientMessage(playerid, COLOR_GREY, "vocк ja tem um Veiculo (/veiculo vender)");
                            return 1;
                        }
                        if(CarInfo[i][cOwned]==1)
                        {
                            SendClientMessage(playerid, COLOR_GREY, "Este Veiculo ja tem dono");
                            return 1;
                        }
                        if(GetPlayerMoney(playerid) >= CarInfo[i][cValue])
                        {
                            PlayerInfo[playerid][pCarKey] = vehid;
                            PlayerInfo[playerid][pVeiculo] = i;
                            CarInfo[i][cOwned] = 1;
                            CarOffered[playerid]=0;
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            strmid(CarInfo[i][cOwner], sendername, 0, strlen(sendername), 999);
                            GivePlayerMoney(playerid,-CarInfo[i][cValue]);
                            GameTextForPlayer(playerid, "~w~Parabens~n~Voce comprou esse Veiculo!", 5000, 3);
                            SendClientMessage(playerid, COLOR_GRAD2, "parabens pela a sua compra!!");
                            SendClientMessage(playerid, COLOR_GRAD2, "USE: /Veiculo ajuda para ver os comandos");
                            TogglePlayerControllable(playerid, 1);
                            SaveCars();
                            return 1;
                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_GREY, "   Vocк nгo tem dinheiro para isso!");
                            return 1;
                        }
                    }
                }
            }
            return 1;
        }
Reply
#3

Deu Erro , e tambem quando fica com os (
(
(
( da Nгo respondendo o pawno e quando eu tiro 2 desses ai vai os erros


pawn Код:
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\pawno\include\YSI/Visual/YSI_objects.own(3193) : warning 219: local variable "set" shadows a variable at a preceding level
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(2790) : error 004: function "FixHour" is not implemented
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(2841) : error 017: undefined symbol "GivePlayerMoneyEx"
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(2870) : error 017: undefined symbol "GivePlayerMoneyEx"
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(3068) : error 004: function "BoxdaGuerra" is not implemented
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(3181) : error 004: function "DetectorProx" is not implemented
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(3239) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(3243) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(3255) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(3259) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(3263) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(3267) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(3271) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(3275) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(3279) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(3291) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(3295) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(3299) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(3303) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(3307) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(3319) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(3323) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(3327) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(3339) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(3343) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(4311) : error 017: undefined symbol "GivePlayerMoneyEx"
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(4345) : error 004: function "GuerraTerrorista" is not implemented

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


26 Errors.
Reply
#4

Alguem Poderia me mandar Um Certo ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)