[AYUDA]Comando /cuenta
#1

Buenas, tengo un bug, este gm(Base CP) ya lo he usado meses en un servidor y nunca me paso esto, lo que me pasa es que cuando pongo /cuenta no me aparece la faccion y si tengo premium, no aparecen en /cuenta pero tengo faccion y premium.
Aqui les dejo los respectivos codigos
Код:
   	zcmd(cuenta, playerid, params[])
	{
	    if(IsPlayerConnected(playerid))
	    {
			if (gPlayerLogged[playerid] != 0)
			{
				ShowStats(playerid,playerid);
			}
		}
		return 1;
	}
Код:
function ShowStats(playerid,targetid)
{
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
	{
        new cash =  GetPlayerMoney(targetid);			new account = PlayerInfo[targetid][pAccount];
		new carkey = PlayerInfo[targetid][pPcarkey];	new carkey2 = PlayerInfo[targetid][pPcarkey2];
		new CarPremium = PlayerInfo[targetid][pCarPremium];
		new nxtlevel = PlayerInfo[targetid][pLevel]+1;	new expamount = nxtlevel*levelexp;
		ClearChatbox(playerid, 10);
		new coordsstring[128];
		format(coordsstring, sizeof(coordsstring),"| Tus Stats : %s",PlayerName(targetid));
		Message(playerid, 0x009BE6FF,coordsstring);
		format(coordsstring, sizeof(coordsstring),"| Edad[%d]  Nivel[%d]  Sexo[%s]  Capital[%d$]  Telйfono[%d]  Seguro[%s]  Adver[%d]", PlayerInfo[targetid][pAge],PlayerInfo[targetid][pLevel],PlayerStatInfo[targetid][0],cash+account,PlayerInfo[targetid][pPnumber], PlayerStatInfo[targetid][7], PlayerInfo[targetid][pAdvertencias]);
		Message(playerid, COLOR_GRAD3,coordsstring);
		format(coordsstring, sizeof(coordsstring), "| Proximo Nivel: %d (%d/%d)  Facciуn[%s]  Rango[%s]  Trabajo[%s]", nxtlevel,PlayerInfo[targetid][pExp],expamount,PlayerInfo[targetid][3],PlayerStatInfo[targetid][4],PlayerStatInfo[targetid][2]);
		Message(playerid, COLOR_GRAD3,coordsstring);
		format(coordsstring, sizeof(coordsstring), "| Horas Jugadas[%d]  Muertes[%d]  Arrestos[%d]  Frags[%d] Casado[%s]  {23F7FA}Premium{FFFFFF}[%s]",PlayerInfo[targetid][pConnectTime],PlayerInfo[targetid][pDeaths],PlayerInfo[targetid][pArrested],PlayerInfo[targetid][pKills], PlayerStatInfo[targetid][6], PlayerStatInfo[targetid][5]);
		Message(playerid, COLOR_GRAD3,coordsstring);
		format(coordsstring, sizeof(coordsstring), "| Casa[%d]  Coche1[%d]  Coche2[%d]  Negocio[%d]  Coche Renta[%d]  Casa Renta[%d]",PlayerInfo[targetid][pPhousekey], PlayerInfo[targetid][pPcarkey], PlayerInfo[targetid][pPcarkey2], PlayerInfo[targetid][pPbizzkey], HireKey[targetid], PlayerInfo[targetid][pRent]);
		Message(playerid, COLOR_GRAD3,coordsstring);
		if(PlayerInfo[targetid][pPcarkey] != 9999)
		{
		    format(coordsstring, sizeof(coordsstring), "| Vehнculo1: %s  Valor: %d$  Colores:%d/%d  Locked:%d", CarInfo[carkey][cName], CarInfo[carkey][cValue], CarInfo[carkey][cColorOne], CarInfo[carkey][cColorTwo], CarInfo[carkey][cLock]);
		    Message(playerid, COLOR_GRAD3,coordsstring);
		}
		if(PlayerInfo[targetid][pPcarkey2] != 9999)
		{
			format(coordsstring, sizeof(coordsstring), "| Vehнculo2: %s  Valor: %d$  Colores:%d/%d  Locked:%d", CarInfo[carkey2][cName], CarInfo[carkey2][cValue], CarInfo[carkey2][cColorOne], CarInfo[carkey2][cColorTwo], CarInfo[carkey2][cLock], CarInfo[carkey2][cLock]);
		    Message(playerid, COLOR_GRAD3,coordsstring);
		}
		if(PlayerInfo[targetid][pCarPremium] != 9999)
		{
			format(coordsstring, sizeof(coordsstring), "| Vehнculo Premium: %s  Valor: %d$  Colores:%d/%d  Locked:%d  Llave:%d", CarInfo[CarPremium][cName], CarInfo[CarPremium][cValue], CarInfo[CarPremium][cColorOne], CarInfo[CarPremium][cColorTwo], CarInfo[CarPremium][cLock], CarPremium);
		    Message(playerid, COLOR_GRAD3,coordsstring);
		}
	}
}
Bueno, espero que me puedan ayudar, gracias de antemano.
Saludos
Reply


Messages In This Thread
[AYUDA]Comando /cuenta - by MatiAcademia - 24.12.2013, 11:41

Forum Jump:


Users browsing this thread: 1 Guest(s)