SA-MP Forums Archive
Ayuda con sistema - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Ayuda con sistema (/showthread.php?tid=355110)



Problema al retirar en caja fuerte - juank - 28.06.2012

Aprovecho este post para publicar un problema que al intentar y intentar no me va, es de retirar en una caja fuerte el dinero guardado pero este no me va:

Код:
		SendClientMessage(playerid, COLOR_WHITE, "USA: /boveda [Opciуn]");
		SendClientMessage(playerid, COLOR_GREY, "OPCIONES: retirar | depositar");
		return 1;
	}
	if(!strcmp(params, "retirar", false, 8))
	{
	    if(sscanf(params, "s[32]i", params, value))
	    {
	        SendClientMessage(playerid, COLOR_WHITE, "USA: /boveda retirar [cantidad]");
	        format(string, sizeof(string), "Dinero en Boveda: $%d", BizInfo[idx][bMoney]);
	        SendClientMessage(playerid, COLOR_GREY, string);
			return 1;
	    }
	    	        	    	if(value <= 0)  return SendClientMessage(playerid, COLOR_GREY, "Cantidad incorrecta.");
	    if(value > BizInfo[idx][bMoney]) return SendClientMessage(playerid, COLOR_GREY, "No tienes esa cantidad.");
	    BizInfo[idx][bMoney] -= value;
	    DaleDinero(playerid, value);
	    format(string, sizeof(string), "* %s ha retirado el dinero de la boveda de su negocio.", PlayerName(playerid));
		SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
		format(string, sizeof(string), " Usted ha retirado $%d de la boveda de su negocio, la cantidad: $%d", value, BizInfo[idx][bMoney]);
		SendClientMessage(playerid, AZUL_MARINO, string);
	}
Saludos.


Re: Ayuda con sistema - Bu11Sh0t - 28.06.2012

Hmm, pasa el comando, no somos adivinos (sin ofender)


Re: Ayuda con sistema - juank - 29.06.2012

Bueno ya lo solucione , igualmente gracias por dar me una mano.

PD: Pongo otra duda aprovechando el post que estб abierto.

Saludos.