17.09.2013, 19:08
hola chicos espero que me peudan ayudar estoy haciendo unos comandos con dialogs pero algunos no me sirven :C
nose porque alguien me puede ayudar?
tengo problemas con las llaves y el orden de los dialogos :S
eso es molesto y cansado pero tengo que hacerlo
aqui los dialogos
aqui estan dos juntos
no retorna a un valor porque no es el ultimo verdad?
osea tengo mas debajos de ellos
estos no me funcionan y nose porque :C
aqui les dejo el cmd de cada uno
el otro
estoy haciendo un servidor TDM avanzado con algunas cositas
espero recibir buena ayuda gracias de ante mano C:
-RafaelZam
nose porque alguien me puede ayudar?
tengo problemas con las llaves y el orden de los dialogos :S
eso es molesto y cansado pero tengo que hacerlo
aqui los dialogos
pawn Код:
if(dialogid == 67)
{
if(!response)
return 1;
switch(listitem)
{
case 0:
{
if(GetPlayerMoney(playerid) < 100)
return SendClientMessage(playerid, 0, "you have not enought money to buy this weapon");
GivePlayerMoney(playerid, -100);
GivePlayerWeapon(playerid, 4, 1);
}
case 1:
{
if(GetPlayerMoney(playerid) < 120)
return SendClientMessage(playerid, 0, "you have not enought money to buy this weapon");
GivePlayerMoney(playerid, -120);
GivePlayerWeapon(playerid, 22, 120);
}
case 4:
{
if(GetPlayerMoney(playerid) < 250)
return SendClientMessage(playerid, 0, "you have not enought money to buy this weapon");
GivePlayerMoney(playerid, -250);
GivePlayerWeapon(playerid, 24, 150);
}
case 5:
{
if(GetPlayerMoney(playerid) < 200)
return SendClientMessage(playerid, 0, "you have not enought money to buy this weapon");
GivePlayerMoney(playerid, -200);
GivePlayerWeapon(playerid, 23, 130);
}
case 6:
{
if(GetPlayerMoney(playerid) < 400)
return SendClientMessage(playerid, 0, "you have not enought money to buy this weapon");
GivePlayerMoney(playerid, -400);
GivePlayerWeapon(playerid, 32, 200);
}
case 7:
{
if(GetPlayerMoney(playerid) < 450)
return SendClientMessage(playerid, 0, "you have not enought money to buy this weapon");
GivePlayerMoney(playerid, -450);
GivePlayerWeapon(playerid, 28, 200);
}
case 8:
{
if(GetPlayerMoney(playerid) < 500)
return SendClientMessage(playerid, 0, "you have not enought money to buy this weapon");
GivePlayerMoney(playerid, -500);
GivePlayerWeapon(playerid, 29, 300);
}
case 9:
{
if(GetPlayerMoney(playerid) < 650)
return SendClientMessage(playerid, 0, "you have not enought money to buy this weapon");
GivePlayerMoney(playerid, -650);
GivePlayerWeapon(playerid, 30, 200);
}
case 10:
{
if(GetPlayerMoney(playerid) < 650)
return SendClientMessage(playerid, 0, "you have not enought money to buy this weapon");
GivePlayerMoney(playerid, -650);
GivePlayerWeapon(playerid, 31, 200);
}
case 11:
{
if(GetPlayerMoney(playerid) < 200)
return SendClientMessage(playerid, 0, "you have not enought money to buy this weapon");
GivePlayerMoney(playerid, -200);
GivePlayerWeapon(playerid, 26, 80);
}
}
}
if(dialogid == 8800)
{
if(!response) return SendClientMessage(playerid, COLOR_red," you canceled this dialog");
{
if(response)
{
switch(listitem)
{
case 0:
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1642.3022,-2333.6287,13.5469);
GivePlayerMoney(playerid, -5000);
SendClientMessage(playerid, COLOR_red2, "now attack him !!!!!! this is sparta !! :D! have fun");
}
case 1:
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1642.3022,-2333.6287,13.5469);
GivePlayerMoney(playerid, -5000);
SendClientMessage(playerid, COLOR_red2, "now attack him !!!!!! this is sparta !! :D! have fun");
}
case 2:
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1642.3022,-2333.6287,13.5469);
GivePlayerMoney(playerid, -5000);
SendClientMessage(playerid, COLOR_red2, "now attack him !!!!!! this is sparta !! :D! have fun");
}
case 3:
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1642.3022,-2333.6287,13.5469);
GivePlayerMoney(playerid, -5000);
SendClientMessage(playerid, COLOR_red2, "now attack him !!!!!! this is sparta !! :D! have fun");
}
case 4:
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1642.3022,-2333.6287,13.5469);
GivePlayerMoney(playerid, -5000);
SendClientMessage(playerid, COLOR_red2, "now attack him !!!!!! this is sparta !! :D! have fun");
}
}
}
}
}
no retorna a un valor porque no es el ultimo verdad?
osea tengo mas debajos de ellos
estos no me funcionan y nose porque :C
aqui les dejo el cmd de cada uno
pawn Код:
CMD:wshop(playerid, params[])
{
ShowPlayerDialog(playerid, 67, DIALOG_STYLE_LIST, "Weapon Shop", "Knife\nPistol Colt 45\nDesert Eagle\nSilenced pistol\nTec-9\nMicro SMG\nMP5\nAk-47\nm4\nsawn off", "accept", "cancel");
return 1;
}
pawn Код:
CMD:baseattack(playerid, params[])
{
if(gPlayerClass[playerid] != Soldado) return SendClientMessage(playerid, COLOR_red, " you cant use this command, only soldados can use it");
ShowPlayerDialog(playerid, 8800, DIALOG_STYLE_LIST, "Choose a TEAM", "\nECUADOR Team\nCOLOMBIA Team\nBRAZIL Team\nARGENTINA Team\nMEXICO Team\n","Choose","Cancel");
return 1;
}
espero recibir buena ayuda gracias de ante mano C:
-RafaelZam