01.07.2014, 16:31
Hola estuve haciendo un pequeсa funciуn para un juego estilo DM pero me salio un pequeсo error. no se si estan mal cerradas las llaves e.e
me sale este error
Aqui el call
realmente no se donde me equivoque
me sale este error
PHP код:
C:\Users\User\Desktop\Atakers.pwn(66) : warning 217: loose indentation
C:\Users\User\Desktop\Atakers.pwn(73) : error 002: only a single statement (or expression) can follow each "case"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Aqui el call
PHP код:
#include <a_samp>
#include <streamer>
#define FILTERSCRIPT
#define batalla 4
#define VERDELIMA 0xB1FF07FF
new string2[256];
#if defined FILTERSCRIPT
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/ad", true))
{
ShowPlayerDialog(playerid, batalla, DIALOG_STYLE_LIST, "Atakers vs Defensores", "Atakers\n Defensores\n", "Seleccionar", "Cancelar");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
//--
case batalla:
{
if(response)
{
switch(listitem)
{
case 0:
{
SetPlayerArmour(playerid,100); //le da 100 de Chaleco
SetPlayerHealth(playerid,100); //le da 100 de Vida
SetPlayerPos(playerid,-799.2450,493.0715,1367.2328);
GivePlayerWeapon(playerid, 24, 9999);
GivePlayerWeapon(playerid, 25, 9999);
GivePlayerWeapon(playerid, 34, 9999);
}
case 1:
{
SetPlayerArmour(playerid,100); //le da 100 de Chaleco
SetPlayerHealth(playerid,100); //le da 100 de Vida
SetPlayerPos(playerid,-759.2450,493.0715,1367.2328);
GivePlayerWeapon(playerid, 24, 9999);
GivePlayerWeapon(playerid, 25, 9999);
GivePlayerWeapon(playerid, 34, 9999);
}
}
}
else
{
}
return 1;
}
#endif