ERROR en GM de ZC
#1

hola chicos tengo un error que me marca aquн y no se que onda

C:\Users\hackers\Desktop\mi\Ciudad Pandora\gamemodes\ZenonCity.net.pwn(18197) : warning 215: expression has no effect
C:\Users\hackers\Desktop\mi\Ciudad Pandora\gamemodes\ZenonCity.net.pwn(18197) : error 001: expected token: ";", but found ":"
C:\Users\hackers\Desktop\mi\Ciudad Pandora\gamemodes\ZenonCity.net.pwn(18197) : error 029: invalid expression, assumed zero
C:\Users\hackers\Desktop\mi\Ciudad Pandora\gamemodes\ZenonCity.net.pwn(18197) : fatal error 107: too many error messages on one line

Код:
	case DIALOG_VIPLOCKER:
			if(response){
				if(listitem == 0){
 					new Float:health;
 					GetPlayerHealth(playerid, health);
					new hpint = floatround( health, floatround_round );
		    		if( hpint >= 100 ) return SendClientMessageEx(playerid, COLOR_GREY, "Ya tienes la vida a full.");
			    	SetHP(playerid, 100);
					SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: Usaste el Botiquнn HP, ahora tienes 100.0 de vida.");
				}
				if(listitem == 1){
					new Float:armour;
					GetPlayerArmour(playerid, armour);
					if(armour >= 100) return SendClientMessageEx(playerid, COLOR_GREY, "Ya tienes la armadura a full.");
					if(Info[playerid][pVIP] == 1){
						if(GetPlayerCash(playerid) < 5000) return SendClientMessageEx(playerid, COLOR_GREY,"No puedes pagar $5000!");
						GivePlayerCash(playerid, -5000);
						SetPlayerArmour(playerid, 100);
						SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: Pagaste $5000 por una armadura.");
					}
					else if(Info[playerid][pVIP] == 2){
						if(GetPlayerCash(playerid) < 10000) return SendClientMessageEx(playerid, COLOR_GREY,"No puedes pagar $3000!");
						GivePlayerCash(playerid, -3000);
						SetPlayerArmour(playerid, 100);
						SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: Pagaste $3000 por una armadura.");
					}
					if(Info[playerid][pVIP] >= 3) SetPlayerArmour(playerid, 100);
				}
				if(listitem == 2){
					if(Info[playerid][pVIP] >= 1) return SafeDialogEx(playerid, DIALOG_VIPWEAPONS, DIALOG_STYLE_LIST, "Armas VIP", "Desert Eagle (3)\nSPAS-12 (5)\nM4 (4)\nAK-47 (4)\nShotgun (2)\nMP5 (3)\nSniper (5)\nPistola SD (2)\nGolf Club (1)\nBat (1)\nDildo (1)\nSword (1)", "Ok", "Cancelar");
					SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: No puedes acceder a los lockers de armas.");
				}
				if(listitem == 3){
            		if(Info[playerid][pVIP] >= 2) return SafeDialogEx( playerid, DIALOG_VIPCLOTHES, DIALOG_STYLE_INPUT, "Selector de Skin","Por favor ingresa una Skin ID!\n\nNote: Los cambios de Skin son Gratis.", "Cambiarse", "Cancelar" );
					SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: Debes ser VIP Silver o mayor para acceder a los lockers de Ropa.");
				}
				if(listitem == 4){
  					if(Info[playerid][pVIP] >= 2) return SafeDialogEx(playerid, DIALOG_VIPJOB, DIALOG_STYLE_LIST, "VIP: Trabajos", "Bartender\nBarrendero\nVendedor de mуviles\nLadrуn\nPizzero\nVendedor de Drogas\nCamionero\nVendedor de Armas\nTaxista\nCosechador\nTraficante de Drogas\nBodyguard\nMecбnico", "Ok", "Cancelar");
					SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: Debes ser VIP Silver o mayor para acceder a los trabajos.");
				}
				if(listitem == 5) SafeDialogEx(playerid, DIALOG_VIPCOLOR, DIALOG_STYLE_LIST, "VIP Color", "On\nOff", "Ok", "Cancelar");
			}
		}
es lo que me marca es en el principio de case DIALOG_VIPLOCKER: la linea que me marca el error
Reply
#2

Podrнas especificar mбs la linea.. me da palo andar leyendo todo para ver cual es el error.
Reply
#3

es una sola linea

quй es la 18197 caso DIALOG_VIPLOCKER: hay estб arriba -_-
Reply
#4

Quizбs tienes alguna funciуn no terminada con los " ; " mбs arriba.
Reply
#5

else return SendClientMessage(playerid, COLOR_GREY, "No tienes suficientes materiales.");
} eso es lo que tengo mбs arriba
Reply
#6

es probable que tengas un corchete "{" "}" de mas o te falta uno.
Reply
#7

Otra cosa.. yo recuerdo usar corchetes en el "Case"

I.E
pawn Код:
case DIALOG_VIPLOCKER:
{
}
Reply
#8

Quote:
Originally Posted by CrossOv3r
Посмотреть сообщение
Otra cosa.. yo recuerdo usar corchetes en el "Case"

I.E
pawn Код:
case DIALOG_VIPLOCKER:
{
}
no es necesario por que todo el demas codigo va en un if que esta despues de el case.
Reply
#9

Код:
case DIALOG_VIPLOCKER:
No sera algo haci?

Код:
case DIALOG_VIPLOCKER;
Reply
#10

Quote:
Originally Posted by !R1Ch@rD!
Посмотреть сообщение
Код:
case DIALOG_VIPLOCKER:
No sera algo haci?

Код:
case DIALOG_VIPLOCKER;
No...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)