20.08.2012, 03:21
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
CMD:lojadearmas(playerid, params[])
{
ShowPlayerDialog(playerid, 123, DIALOG_STYLE_LIST, "Loja De Armas", "Ealge\nSniper\nM4\nMP5\nFaca\nRebite", "Comprar", "Cancela");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 123)
{
if(response == 0)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid, 4, 1);
SendClientMessage(playerid,COLOR_VERMELHO,"Vocк Recebeu 1 Faca")
return 1;
}
if(listitem == 1)
{
GivePlayerWeapon(playerid, 24, 150);
SendClientMessage(playerid,COLOR_VERMELHO,"Vocк Recebeu 1 Eagle Com 150 Balas")
return 1;
}
if(listitem == 2)
{
GivePlayerWeapon(playerid, 34, 150);
SendClientMessage(playerid,COLOR_VERMELHO,"Vocк Recebeu 1 Sniper Com 150 Balas");
return 1;
}
if(listitem == 3)
{
GivePlayerWeapon(playerid, 31, 300);
SendClientMessage(playerid,COLOR_VERMELHO,"Vocк Recebeu 1 M4 Com 300 Balas");
return 1;
}
if(listitem == 4)
{
GivePlayerWeapon(playerid, 29, 300);
SendClientMessage(playerid,COLOR_VERMELHO,"Vocк Recebeu 1 MP5 Com 300 Balas");
return 1;
}
if(listitem == 5)
{
GivePlayerWeapon(playerid, 25, 100);
SendClientMessage(playerid,COLOR_VERMELHO,"Vocк Recebeu 1 Rebite Com 100 Balas");
return 1;
}
}
}
}
pawn Код:
C:\Users\Juninho\Desktop\BVN.pwn(67) : error 029: invalid expression, assumed zero
C:\Users\Juninho\Desktop\BVN.pwn(67) : error 017: undefined symbol "cmd_lojadearmas"
C:\Users\Juninho\Desktop\BVN.pwn(67) : error 029: invalid expression, assumed zero
C:\Users\Juninho\Desktop\BVN.pwn(67) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Todos os erros estao na linha 67 oque tem la?
pawn Код:
CMD:lojadearmas(playerid, params[])