28.07.2014, 01:46
Problema con el /cuenta, me tira "Unknowcommand" cuando estoy dentro del servidor
Pongo estos 2 codigos, no se cual es el que esta mal... GRACIAS
PS: Antes estaba en Dialogo y lo querнa pasar a Texto...
Pongo estos 2 codigos, no se cual es el que esta mal... GRACIAS
PS: Antes estaba en Dialogo y lo querнa pasar a Texto...
PHP код:
command(cuenta, playerid, params[])
{
if(IsPlayerConnected(playerid))
{
if (gPlayerLogged[playerid] != 0)
{
ShowStats(playerid,playerid);
}
}
return 1;
}
PHP код:
CallBack::ShowStats(playerid,targetid)
{
if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
{
new cash = GetScriptMoney(targetid); new account = PlayerInfo[targetid][pAccount];
new carkey = PlayerInfo[targetid][pPcarkey]; new carkey2 = PlayerInfo[targetid][pPcarkey2];
new CarPremium = PlayerInfo[targetid][pCarPremium]; new CarPremium2 = PlayerInfo[targetid][pCarPremium2];
new nxtlevel = PlayerInfo[targetid][pLevel]+1; new expamount = nxtlevel*levelexp;
ClearChatbox(playerid, 10);
new iString[128];
format(iString,500, "{E4A54D} %sDatos OOC:{FFFFFF} Nivel {E4A54D}%d{FFFFFF} Advertencias {E4A54D}%d.{FFFFFF} Tus horas jugadas son de {E4A54D}%d{FFFFFF}. Tu prуximo nivel es {E4A54D}%d (%d/%d){FFFFFF}.",PlayerName(targetid), PlayerInfo[targetid][pLevel], PlayerInfo[targetid][pAdvertencias], PlayerInfo[targetid][pConnectTime], nxtlevel,PlayerInfo[targetid][pExp],expamount);
Message(playerid, -1, iString);
format(iString,500, "{FFFFFF} Perteneces a la facciуn {E4A54D}%s{FFFFFF} con el rango {E4A54D}%s{FFFFFF}. Tus muertes son de {E4A54D}%d{FFFFFF}. Has asesinado {E4A54D}%d{FFFFFF} veces. %s eres VIP.",PlayerStatInfo[targetid][3],PlayerStatInfo[targetid][4], PlayerInfo[targetid][pDeaths], PlayerInfo[targetid][pKills], PlayerStatInfo[targetid][5]);
Message(playerid, -1, iString);
format(iString,500, "{FFFFFF} Tus puntos de Rol son de {E4A54D}%d{FFFFFF}. Tienes {E4A54D}%d/3{FFFFFF} advertencias del Rol", PlayerInfo[targetid][pPuntosRol], PlayerInfo[targetid][pADVRol]);
Message(playerid, -1, iString);
format(iString,500, "{FFFFFF} Tu edad es de {E4A54D}%d{FFFFFF}. Tu sexo es {E4A54D}%s{FFFFFF} y tienes ${E4A54D}%d{FFFFFF} depositados. Tu nъmero de tarjeta es {E4A54D}%d{FFFFFF}.",PlayerInfo[targetid][pAge], PlayerStatInfo[targetid][0], account, PlayerInfo[targetid][pTarjeta]);
Message(playerid, -1, iString);
format(iString,500, "{FFFFFF} Tu nъmero telefуnico es {E4A54D}%d{FFFFFF}. %s tienes seguro mйdico. Tu primer trabajo es {E4A54D}%s{FFFFFF}. Tu perteneces a la familia {E4A54D}%s{FFFFFF}.", PlayerInfo[targetid][pPnumber], PlayerStatInfo[targetid][7], PlayerStatInfo[targetid][2]);
Message(playerid, -1, iString);
format(iString,500, "{FFFFFF} Tu dinero en mano es ${E4A54D}%d{FFFFFF}. Tu casa es la villa {E4A54D}%d{FFFFFF}. Tu primer vehнculo es el {E4A54D}%d{FFFFFF}, el segundo {E4A54D}%d{FFFFFF}",cash, PlayerInfo[targetid][pPhousekey], PlayerInfo[targetid][pPcarkey], PlayerInfo[targetid][pPcarkey2]);
Message(playerid, -1, iString);
format(iString,500, "{FFFFFF} Tu negocio es el local {E4A54D}%d{FFFFFF}. Tu vehнculo de renta {E4A54D}%d{FFFFFF}. Tu casa de renta {E4A54D}%d{FFFFFF}.", PlayerInfo[targetid][pPbizzkey], HireKey[targetid], PlayerInfo[targetid][pRent]);
Message(playerid, -1, iString);
if(PlayerInfo[targetid][pPcarkey] != 9999)
{
format(iString, sizeof(iString), "»{FFFFFF} 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_LIGHTBLUE,iString);
}
if(PlayerInfo[targetid][pPcarkey2] != 9999)
{
format(iString, sizeof(iString), "»{FFFFFF} 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_LIGHTBLUE,iString);
}
if(PlayerInfo[targetid][pCarPremium] != 9999)
{
format(iString, sizeof(iString), "»{FFFFFF} 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_LIGHTBLUE,iString);
}
if(PlayerInfo[targetid][pCarPremium2] != 9999)
{
format(iString, sizeof(iString), "»{FFFFFF} Vehнculo Premium2: %s Valor: %d$ Colores:%d/%d Locked:%d Llave:%d", CarInfo[CarPremium2][cName], CarInfo[CarPremium2][cValue], CarInfo[CarPremium2][cColorOne], CarInfo[CarPremium2][cColorTwo], CarInfo[CarPremium2][cLock], CarPremium2);
Message(playerid, COLOR_LIGHTBLUE,iString);
}
if(PlayerInfo[targetid][pPuntosRol] == 0)
{
format(iString, sizeof(iString), "»{FFFFFF} Rango de rol: N/A");
Message(playerid, COLOR_LIGHTBLUE,iString);
}
if(PlayerInfo[targetid][pPuntosRol] >= 1 && PlayerInfo[targetid][pPuntosRol] <= 2)
{
format(iString, sizeof(iString), "»{FFFFFF} Rango de rol: Roler Novato");
Message(playerid, COLOR_LIGHTBLUE,iString);
}
if(PlayerInfo[targetid][pPuntosRol] >= 3 && PlayerInfo[targetid][pPuntosRol] <= 5)
{
format(iString, sizeof(iString), "»{FFFFFF} Rango de rol: Roler Intermedio");
Message(playerid, COLOR_LIGHTBLUE,iString);
}
if(PlayerInfo[targetid][pPuntosRol] >= 6 && PlayerInfo[targetid][pPuntosRol] <= 9)
{
format(iString, sizeof(iString), "»{FFFFFF} Rango de rol: Roler Experto");
Message(playerid, COLOR_LIGHTBLUE,iString);
}
if(PlayerInfo[targetid][pPuntosRol] == 10)
{
format(iString, sizeof(iString), "»{FFFFFF} Rango de rol: Roler Profesional");
Message(playerid, COLOR_LIGHTBLUE,iString);
}
}
}