Conectar Dialog y Menu de compras
#1

Hola, tengo un problema que no se como solucionarlo...
Tengo un Dialog y un menu de compra el cual no se como conectar, yo hise modificaciones a la lista de compra y ahora no me funciona la lista...

Menu:
pawn Код:
new Buyitems[] = "1\tTelefono celular ($150)\n2\tAgenda ($10)\n3\tCamara ($50)\n4\tMascara ($500)\n5\tReloj ($100)\n6\tHerramientas de Pesca ($150$)\n7\tCuerda ($10)\n8\tEncendedor ($5)\n9\tCigarros ($30\n10\tReproductor de Musica ($250)\n11\tVelocimetro ($500)";
                ShowPlayerDialog(playerid,69,DIALOG_STYLE_LIST,"24-7 Mercado",Buyitems,"Comprar","Cancelar");
Dialog:
http://pastebin.com/hwRZw83J
Reply
#2

Nadie me da una mano?
Reply
#3

Asн:

pawn Код:
if(dialogid == 69)
  {
    if(response)
    {
            switch(listitem)
            {
            case 0:
            {
                   if(PlayerInfo[playerid][pTraderPerk] > 0)
                  {
                        new skill = 150 / 100;
                        new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
                        new payout = 150 - price;
                    format(string, sizeof(string), "~r~-$%d", payout);
                        GameTextForPlayer(playerid, string, 5000, 1);
                        SafeGivePlayerMoney(playerid,- payout);
                        SBizzInfo[9][sbTill] += payout;
                        ExtortionSBiz(9, payout); //[...]Continua con el codigo y en lugar de poner listitem pon case 0: case 1: ...
Reply
#4

Bien hise lo que me dijistes pero algo esta mal por que me tira una serie de errores que solo los tira cuando algo esta mal...
Dialog modificado como me dijistes:
http://pastebin.com/56W7a4sW

Errores que me tira cuando algo esta mal:
Код:
D:\Otros\Escritorio\Temporal\[GM] Raven's Roleplay\server\gamemodes\larp.pwn(3264) : error 004: function "SafeGivePlayerMoney" is not implemented
D:\Otros\Escritorio\Temporal\[GM] Raven's Roleplay\server\gamemodes\larp.pwn(3293) : error 004: function "SafeGivePlayerMoney" is not implemented
D:\Otros\Escritorio\Temporal\[GM] Raven's Roleplay\server\gamemodes\larp.pwn(3329) : error 004: function "SafeResetPlayerWeapons" is not implemented
D:\Otros\Escritorio\Temporal\[GM] Raven's Roleplay\server\gamemodes\larp.pwn(3330) : error 004: function "SafeGivePlayerWeapon" is not implemented
D:\Otros\Escritorio\Temporal\[GM] Raven's Roleplay\server\gamemodes\larp.pwn(3357) : error 004: function "SafeResetPlayerWeapons" is not implemented
D:\Otros\Escritorio\Temporal\[GM] Raven's Roleplay\server\gamemodes\larp.pwn(3653) : error 004: function "SafeSetPlayerInterior" is not implemented
D:\Otros\Escritorio\Temporal\[GM] Raven's Roleplay\server\gamemodes\larp.pwn(3657) : error 004: function "SafeSetPlayerInterior" is not implemented
D:\Otros\Escritorio\Temporal\[GM] Raven's Roleplay\server\gamemodes\larp.pwn(3665) : error 004: function "SafeSetPlayerInterior" is not implemented
D:\Otros\Escritorio\Temporal\[GM] Raven's Roleplay\server\gamemodes\larp.pwn(3670) : error 004: function "SetPlayerToTeamColor" is not implemented
D:\Otros\Escritorio\Temporal\[GM] Raven's Roleplay\server\gamemodes\larp.pwn(3687) : error 004: function "SafeSetPlayerInterior" is not implemented
D:\Otros\Escritorio\Temporal\[GM] Raven's Roleplay\server\gamemodes\larp.pwn(3694) : error 004: function "SetPlayerToTeamColor" is not implemented
D:\Otros\Escritorio\Temporal\[GM] Raven's Roleplay\server\gamemodes\larp.pwn(3958) : error 004: function "PlayerToPoint" is not implemented
D:\Otros\Escritorio\Temporal\[GM] Raven's Roleplay\server\gamemodes\larp.pwn(3969) : error 004: function "PlayerToPoint" is not implemented
D:\Otros\Escritorio\Temporal\[GM] Raven's Roleplay\server\gamemodes\larp.pwn(3981) : error 004: function "PlayerToPoint" is not implemented
D:\Otros\Escritorio\Temporal\[GM] Raven's Roleplay\server\gamemodes\larp.pwn(3985) : error 004: function "PlayerToPoint" is not implemented
D:\Otros\Escritorio\Temporal\[GM] Raven's Roleplay\server\gamemodes\larp.pwn(3997) : error 004: function "PlayerToPoint" is not implemented
D:\Otros\Escritorio\Temporal\[GM] Raven's Roleplay\server\gamemodes\larp.pwn(4001) : error 004: function "PlayerToPoint" is not implemented
D:\Otros\Escritorio\Temporal\[GM] Raven's Roleplay\server\gamemodes\larp.pwn(4005) : error 004: function "PlayerToPoint" is not implemented
D:\Otros\Escritorio\Temporal\[GM] Raven's Roleplay\server\gamemodes\larp.pwn(4009) : error 004: function "PlayerToPoint" is not implemented
D:\Otros\Escritorio\Temporal\[GM] Raven's Roleplay\server\gamemodes\larp.pwn(4013) : error 004: function "PlayerToPoint" is not implemented
D:\Otros\Escritorio\Temporal\[GM] Raven's Roleplay\server\gamemodes\larp.pwn(4017) : error 004: function "PlayerToPoint" is not implemented
D:\Otros\Escritorio\Temporal\[GM] Raven's Roleplay\server\gamemodes\larp.pwn(4021) : error 004: function "PlayerToPoint" is not implemented
D:\Otros\Escritorio\Temporal\[GM] Raven's Roleplay\server\gamemodes\larp.pwn(4025) : error 004: function "PlayerToPoint" is not implemented
D:\Otros\Escritorio\Temporal\[GM] Raven's Roleplay\server\gamemodes\larp.pwn(4037) : error 004: function "PlayerToPoint" is not implemented
D:\Otros\Escritorio\Temporal\[GM] Raven's Roleplay\server\gamemodes\larp.pwn(4041) : error 004: function "PlayerToPoint" is not implemented
D:\Otros\Escritorio\Temporal\[GM] Raven's Roleplay\server\gamemodes\larp.pwn(4045) : error 004: function "PlayerToPoint" is not implemented

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Reply
#5

Nadie me da una ayudita?

PD: Ya paso la fecha por eso auto conteste mi post.
Reply
#6

Ese error es porque colocaste alguna llave ({ , }) de estas mal, o te falta alguna. Compruebalas o sino ya le echarй una mirada, ahora ando mal de tiempo.
Reply
#7

Quote:
Originally Posted by Dws
Ese error es porque colocaste alguna llave ({ , }) de estas mal, o te falta alguna. Compruebalas o sino ya le echarй una mirada, ahora ando mal de tiempo.
En el codigo que modifique no encontre ningun lugar done falta { , } o sobra
Reply
#8

Entonces debe ser otra cosa que hayas modificado. Recuerda que modificastes antes de que te saliera el error.
Reply
#9

Quote:
Originally Posted by Dws
Entonces debe ser otra cosa que hayas modificado. Recuerda que modificastes antes de que te saliera el error.
No modifique mas nada, por que modifique el codigo lo puse, copile y me daba esos errores, le doy control + z para volver a como estaba y copila bien, es el codigo que esta mal...
Reply
#10

Listo, aсade una llave de estas al final }
Te saltaste la ъltima
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)