if(response) { switch(dialogid) { case 1: { switch(listitem) { case 0: { if(PlayerInfo[playerid][Vip] < 1) return SendClientMessage(playerid, 0xFFFFFF, "Usted No Tiene suficiente Dinero."); GivePlayerWeapon(playerid, 9, 1); } case 1: { if(PlayerInfo[playerid][Vip] < 1) return SendClientMessage(playerid, 0xFFFFFF, "Usted No Tiene suficiente Dinero."); GivePlayerWeapon(playerid, 16, 100); } case 2: { if(PlayerInfo[playerid][Vip] < 1) return SendClientMessage(playerid, 0xFFFFFF, "No Tiene dinero Para Pagar Esta bebida"); GivePlayerWeapon(playerid, 37, 150); } } } return 1; } return 1; }
C:\Users\NaaZa\Desktop\GMTDM\gamemodes\TDMs.pwn(1703) : error 002: only a single statement (or expression) can follow each "case" C:\Users\NaaZa\Desktop\GMTDM\gamemodes\TDMs.pwn(1703) : warning 215: expression has no effect Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
if(response)
{
switch(dialogid)
{
case 1:
{
switch(listitem)
{
case 0:
{
if(PlayerInfo[playerid][Vip] < 1) return SendClientMessage(playerid, 0xFFFFFF, "Usted No Tiene suficiente Dinero.");
GivePlayerWeapon(playerid, 9, 1);
}
case 1:
{
if(PlayerInfo[playerid][Vip] < 1) return SendClientMessage(playerid, 0xFFFFFF, "Usted No Tiene suficiente Dinero.");
GivePlayerWeapon(playerid, 16, 100);
}
case 2:
{
if(PlayerInfo[playerid][Vip] < 1) return SendClientMessage(playerid, 0xFFFFFF, "No Tiene dinero Para Pagar Esta bebida");
GivePlayerWeapon(playerid, 37, 150);
}
}
}
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
{
switch(dialogid)
{
case 1:
{
switch(listitem)
{
case 0:
{
if(asd < 1) return SendClientMessage(playerid, 0xFFFFFF, "Usted No Tiene suficiente Dinero.");
GivePlayerWeapon(playerid, 9, 1);
}
case 1:
{
if(asd < 1) return SendClientMessage(playerid, 0xFFFFFF, "Usted No Tiene suficiente Dinero.");
GivePlayerWeapon(playerid, 16, 100);
}
case 2:
{
if(asd < 1) return SendClientMessage(playerid, 0xFFFFFF, "No Tiene dinero Para Pagar Esta bebida");
GivePlayerWeapon(playerid, 37, 150);
}
}
}
return 1; //Error
}
}
return 0;
}
new a=0;
switch(a)
{
case 0: SendClientMessageToAll(-1, "b");
return 1; // Error.
}
if(response) { switch(dialogid) { case 1: { switch(listitem) { case 0: { if(PlayerInfo[playerid][Vip] < 1) return SendClientMessage(playerid, 0xFFFFFF, "Usted No Tiene suficiente Dinero."); GivePlayerWeapon(playerid, 9, 1); } case 1: { if(PlayerInfo[playerid][Vip] < 1) return SendClientMessage(playerid, 0xFFFFFF, "Usted No Tiene suficiente Dinero."); GivePlayerWeapon(playerid, 16, 100); } case 2: { if(PlayerInfo[playerid][Vip] < 1) return SendClientMessage(playerid, 0xFFFFFF, "No Tiene dinero Para Pagar Esta bebida"); GivePlayerWeapon(playerid, 37, 150); } } } } return 1; }
C:\Users\NaaZa\Desktop\GMTDM\gamemodes\TDMs.pwn(673) : error 017: undefined symbol "AdminMensaje" C:\Users\NaaZa\Desktop\GMTDM\gamemodes\TDMs.pwn(1707) : error 029: invalid expression, assumed zero C:\Users\NaaZa\Desktop\GMTDM\gamemodes\TDMs.pwn(1707) : error 004: function "OnPlayerClickPlayer" is not implemented C:\Users\NaaZa\Desktop\GMTDM\gamemodes\TDMs.pwn(1711) : warning 225: unreachable code C:\Users\NaaZa\Desktop\GMTDM\gamemodes\TDMs.pwn(1711) : error 029: invalid expression, assumed zero C:\Users\NaaZa\Desktop\GMTDM\gamemodes\TDMs.pwn(1711) : error 017: undefined symbol "SonNumeros" C:\Users\NaaZa\Desktop\GMTDM\gamemodes\TDMs.pwn(1713) : error 017: undefined symbol "string" C:\Users\NaaZa\Desktop\GMTDM\gamemodes\TDMs.pwn(1715) : error 017: undefined symbol "string" C:\Users\NaaZa\Desktop\GMTDM\gamemodes\TDMs.pwn(1715) : warning 215: expression has no effect C:\Users\NaaZa\Desktop\GMTDM\gamemodes\TDMs.pwn(1715) : error 001: expected token: ";", but found "]" C:\Users\NaaZa\Desktop\GMTDM\gamemodes\TDMs.pwn(1715) : error 029: invalid expression, assumed zero C:\Users\NaaZa\Desktop\GMTDM\gamemodes\TDMs.pwn(1715) : fatal error 107: too many error messages on one line
Hola, gracias por responder, puse el code que me pasaron y me tira mбs errores:
Код:
if(response) { switch(dialogid) { case 1: { switch(listitem) { case 0: { if(PlayerInfo[playerid][Vip] < 1) return SendClientMessage(playerid, 0xFFFFFF, "Usted No Tiene suficiente Dinero."); GivePlayerWeapon(playerid, 9, 1); } case 1: { if(PlayerInfo[playerid][Vip] < 1) return SendClientMessage(playerid, 0xFFFFFF, "Usted No Tiene suficiente Dinero."); GivePlayerWeapon(playerid, 16, 100); } case 2: { if(PlayerInfo[playerid][Vip] < 1) return SendClientMessage(playerid, 0xFFFFFF, "No Tiene dinero Para Pagar Esta bebida"); GivePlayerWeapon(playerid, 37, 150); } } } } return 1; } Код:
C:\Users\NaaZa\Desktop\GMTDM\gamemodes\TDMs.pwn(673) : error 017: undefined symbol "AdminMensaje" C:\Users\NaaZa\Desktop\GMTDM\gamemodes\TDMs.pwn(1707) : error 029: invalid expression, assumed zero C:\Users\NaaZa\Desktop\GMTDM\gamemodes\TDMs.pwn(1707) : error 004: function "OnPlayerClickPlayer" is not implemented C:\Users\NaaZa\Desktop\GMTDM\gamemodes\TDMs.pwn(1711) : warning 225: unreachable code C:\Users\NaaZa\Desktop\GMTDM\gamemodes\TDMs.pwn(1711) : error 029: invalid expression, assumed zero C:\Users\NaaZa\Desktop\GMTDM\gamemodes\TDMs.pwn(1711) : error 017: undefined symbol "SonNumeros" C:\Users\NaaZa\Desktop\GMTDM\gamemodes\TDMs.pwn(1713) : error 017: undefined symbol "string" C:\Users\NaaZa\Desktop\GMTDM\gamemodes\TDMs.pwn(1715) : error 017: undefined symbol "string" C:\Users\NaaZa\Desktop\GMTDM\gamemodes\TDMs.pwn(1715) : warning 215: expression has no effect C:\Users\NaaZa\Desktop\GMTDM\gamemodes\TDMs.pwn(1715) : error 001: expected token: ";", but found "]" C:\Users\NaaZa\Desktop\GMTDM\gamemodes\TDMs.pwn(1715) : error 029: invalid expression, assumed zero C:\Users\NaaZa\Desktop\GMTDM\gamemodes\TDMs.pwn(1715) : fatal error 107: too many error messages on one line |