C:\Users\Val\Desktop\PAWN\GAMEMODES\samp 0.3.7\filterscripts\fs armas 1.0.pwn(23) : error 002: only a single statement (or expression) can follow each "case" C:\Users\Val\Desktop\PAWN\GAMEMODES\samp 0.3.7\filterscripts\fs armas 1.0.pwn(23) : error 017: undefined symbol "cmdtext" C:\Users\Val\Desktop\PAWN\GAMEMODES\samp 0.3.7\filterscripts\fs armas 1.0.pwn(25) : error 029: invalid expression, assumed zero C:\Users\Val\Desktop\PAWN\GAMEMODES\samp 0.3.7\filterscripts\fs armas 1.0.pwn(25) : error 017: undefined symbol "cmd_kits" C:\Users\Val\Desktop\PAWN\GAMEMODES\samp 0.3.7\filterscripts\fs armas 1.0.pwn(25) : error 029: invalid expression, assumed zero C:\Users\Val\Desktop\PAWN\GAMEMODES\samp 0.3.7\filterscripts\fs armas 1.0.pwn(25) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors. |
OnPlayerCommandPerformed(playerid, cmdtext[], success) { CMD:kits(playerid,params[]) { ShowPlayerDialog(playerid,200, DIALOG_STYLE_LIST, "KITS", "(KIT1)9MM, SHOTGUN, MICRO SMG/UZI, GRANADA", "Escolher", "Cancelar"); } return 1; } |
C:\Users\Val\Desktop\PAWN\GAMEMODES\samp 0.3.7\filterscripts\fs armas 1.0.pwn(24) : error 002: only a single statement (or expression) can follow each "case" C:\Users\Val\Desktop\PAWN\GAMEMODES\samp 0.3.7\filterscripts\fs armas 1.0.pwn(24) : error 017: undefined symbol "cmd_kits" C:\Users\Val\Desktop\PAWN\GAMEMODES\samp 0.3.7\filterscripts\fs armas 1.0.pwn(24) : error 029: invalid expression, assumed zero C:\Users\Val\Desktop\PAWN\GAMEMODES\samp 0.3.7\filterscripts\fs armas 1.0.pwn(24) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
CMD:comando(playerid, params[])
{
return 1;
}
CMD:kits(playerid,params[])
{
ShowPlayerDialog(playerid,200, DIALOG_STYLE_LIST, "KITS", "(KIT1)9MM, SHOTGUN, MICRO SMG/UZI, GRANADA", "Escolher", "Cancelar");
return 1;
}
Fazer comando sem retorno ? й meio complicado nй jovem ;\
Base: PHP код:
PHP код:
|
OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
CMD:kits(playerid,params[])
{
ShowPlayerDialog(playerid,200, DIALOG_STYLE_LIST, "KITS", "(KIT1)9MM, SHOTGUN, MICRO SMG/UZI, GRANADA", "Escolher", "Cancelar");
}
return 1;
}
Encontra ele ai entгo:
PHP код:
|
CMD:kits(playerid,params[])
{ ShowPlayerDialog(playerid,200, DIALOG_STYLE_LIST, "KITS", "(KIT1)9MM, SHOTGUN, MICRO SMG/UZI, GRANADA", "Escolher", "Cancelar"); } return 1; } nгo e isso? '-' mais mesmo assim nгo funcionou. |
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 200)
{
if(response)
{
switch(listitem)
{
case 0:
{
GivePlayerWeapon(playerid, 22, 1000);
GivePlayerWeapon(playerid, 25, 1000);
GivePlayerWeapon(playerid, 28, 1000);
GivePlayerWeapon(playerid, 16, 20);
}
}
}
}
return 1;
}