[Pomoc] /stats

Započeo Jhony Walker, Septembar 05, 2012, 14:18:38 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:DVRP
Detaljan opis problema:Cmd /stats ne prikazuje
Dio skripte:CMD: stats(playerid, params[])
{
    if(IsPlayerConnected(playerid))
    {
if (gPlayerLogged[playerid] != 0)
{
                new sendername[123];
                new string[256];
ShowStats(playerid,playerid);
GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s gleda svoj status (/stats).", sendername);
    ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Niste logirani!");
}
}
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno)://

CMD:stats(playerid, params[])
{
    if(IsPlayerConnected(playerid))
    {
if (gPlayerLogged[playerid] != 0)
{
                new sendername[123];
                new string[256];
ShowStats(playerid,playerid);
GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s gleda svoj status (/stats).", sendername);
    ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Niste logirani!");
}
}
return 1;
}

Probaj ovako.
ODSUTAN

Ne pomaze, BTW izbacuje Warning: (62416) : warning 203: symbol is never used: "stats"

Jesi siguran da si includevao zCMD i gde si ubacio cmd?
ODSUTAN

Citat: Daniel Zero poslato Septembar 05, 2012, 15:01:29 POSLE PODNE
Jesi siguran da si includevao zCMD i gde si ubacio cmd?
Nisam ja ubacio cmd nego skripter koji mi pomaze
Poslednja Izmena: Septembar 05, 2012, 15:03:57 POSLE PODNE od Ganjah Don

Daj mi stock/public ShowStats.
ODSUTAN

Citat: Daniel Zero poslato Septembar 05, 2012, 15:11:15 POSLE PODNE
Daj mi stock/public ShowStats.

public ShowStats(playerid,targetid)
{
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
{
new cash =  GetPlayerMoney(targetid);
new atext[20];
if(PlayerInfo[targetid][pSex] == 1) { atext = "Musko"; }
else if(PlayerInfo[targetid][pSex] == 2) { atext = "Zensko"; }
  new otext[20];
if(PlayerInfo[targetid][pOrigin] == 1) { otext = "Hrvatska"; }
else if(PlayerInfo[targetid][pOrigin] == 2) { otext = "BiH"; }
else if(PlayerInfo[targetid][pOrigin] == 3) { otext = "Srbija"; }
else if(PlayerInfo[targetid][pOrigin] == 4) { otext = "Crna Gora"; }
else if(PlayerInfo[targetid][pOrigin] == 5) { otext = "Slovenija"; }
else if(PlayerInfo[targetid][pOrigin] == 6) { otext = "Makedonija"; }
else if(PlayerInfo[targetid][pOrigin] == 7) { otext = "Ostalo"; }
new dtext[20];
if(STDPlayer[targetid] == 1) { dtext = "Hlamidija"; }
else if(STDPlayer[targetid] == 2) { dtext = "Goroneja"; }
else if(STDPlayer[targetid] == 3) { dtext = "Sifilis"; }
else { dtext = "Nema"; }
    new ftext[30];
    if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1)
{ ftext = "P.D"; }
  else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2)
{ ftext = "F.B.I."; }
        else if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4)
{ ftext = "Hitna Pomoc"; }
  else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5)
{ ftext = "Saints"; }
else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6)
{ ftext = "L.C.N"; }
else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 7)
{ ftext = "Gradonacelnik"; }
else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8)
{ ftext = "ICA"; }
else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9)
{ ftext = "SAN"; }
else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 12)
{ ftext = "LosZetas"; }
else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 14)
{ ftext = "N.R"; }
else if(PlayerInfo[targetid][pMember] == 15 || PlayerInfo[targetid][pLeader] == 15)
{ ftext = "G.S.F"; }
else
{ ftext = "Nema"; }
new f2text[20];
    if(PlayerInfo[targetid][pFMember] < 255) { f2text = FamilyInfo[PlayerInfo[targetid][pFMember]][FamilyName]; }
else { f2text = "Nema"; }
    new rtext[64];

Citat: Ganjah Don poslato Septembar 05, 2012, 15:19:26 POSLE PODNE
Citat: Daniel Zero poslato Septembar 05, 2012, 15:11:15 POSLE PODNE
Daj mi stock/public ShowStats.

public ShowStats(playerid,targetid)
{
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
{
new cash =  GetPlayerMoney(targetid);
new atext[20];
if(PlayerInfo[targetid][pSex] == 1) { atext = "Musko"; }
else if(PlayerInfo[targetid][pSex] == 2) { atext = "Zensko"; }
  new otext[20];
if(PlayerInfo[targetid][pOrigin] == 1) { otext = "Hrvatska"; }
else if(PlayerInfo[targetid][pOrigin] == 2) { otext = "BiH"; }
else if(PlayerInfo[targetid][pOrigin] == 3) { otext = "Srbija"; }
else if(PlayerInfo[targetid][pOrigin] == 4) { otext = "Crna Gora"; }
else if(PlayerInfo[targetid][pOrigin] == 5) { otext = "Slovenija"; }
else if(PlayerInfo[targetid][pOrigin] == 6) { otext = "Makedonija"; }
else if(PlayerInfo[targetid][pOrigin] == 7) { otext = "Ostalo"; }
new dtext[20];
if(STDPlayer[targetid] == 1) { dtext = "Hlamidija"; }
else if(STDPlayer[targetid] == 2) { dtext = "Goroneja"; }
else if(STDPlayer[targetid] == 3) { dtext = "Sifilis"; }
else { dtext = "Nema"; }
    new ftext[30];
    if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1)
{ ftext = "P.D"; }
  else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2)
{ ftext = "F.B.I."; }
        else if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4)
{ ftext = "Hitna Pomoc"; }
  else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5)
{ ftext = "Saints"; }
else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6)
{ ftext = "L.C.N"; }
else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 7)
{ ftext = "Gradonacelnik"; }
else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8)
{ ftext = "ICA"; }
else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9)
{ ftext = "SAN"; }
else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 12)
{ ftext = "LosZetas"; }
else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 14)
{ ftext = "N.R"; }
else if(PlayerInfo[targetid][pMember] == 15 || PlayerInfo[targetid][pLeader] == 15)
{ ftext = "G.S.F"; }
else
{ ftext = "Nema"; }
new f2text[20];
    if(PlayerInfo[targetid][pFMember] < 255) { f2text = FamilyInfo[PlayerInfo[targetid][pFMember]][FamilyName]; }
else { f2text = "Nema"; }
    new rtext[64];

Pa ovde nemas da saljes text igracu..
ODSUTAN

Citat: Daniel Zero poslato Septembar 05, 2012, 15:25:06 POSLE PODNE
Citat: Ganjah Don poslato Septembar 05, 2012, 15:19:26 POSLE PODNE
Citat: Daniel Zero poslato Septembar 05, 2012, 15:11:15 POSLE PODNE
Daj mi stock/public ShowStats.

public ShowStats(playerid,targetid)
{
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
{
new cash =  GetPlayerMoney(targetid);
new atext[20];
if(PlayerInfo[targetid][pSex] == 1) { atext = "Musko"; }
else if(PlayerInfo[targetid][pSex] == 2) { atext = "Zensko"; }
  new otext[20];
if(PlayerInfo[targetid][pOrigin] == 1) { otext = "Hrvatska"; }
else if(PlayerInfo[targetid][pOrigin] == 2) { otext = "BiH"; }
else if(PlayerInfo[targetid][pOrigin] == 3) { otext = "Srbija"; }
else if(PlayerInfo[targetid][pOrigin] == 4) { otext = "Crna Gora"; }
else if(PlayerInfo[targetid][pOrigin] == 5) { otext = "Slovenija"; }
else if(PlayerInfo[targetid][pOrigin] == 6) { otext = "Makedonija"; }
else if(PlayerInfo[targetid][pOrigin] == 7) { otext = "Ostalo"; }
new dtext[20];
if(STDPlayer[targetid] == 1) { dtext = "Hlamidija"; }
else if(STDPlayer[targetid] == 2) { dtext = "Goroneja"; }
else if(STDPlayer[targetid] == 3) { dtext = "Sifilis"; }
else { dtext = "Nema"; }
    new ftext[30];
    if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1)
{ ftext = "P.D"; }
  else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2)
{ ftext = "F.B.I."; }
        else if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4)
{ ftext = "Hitna Pomoc"; }
  else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5)
{ ftext = "Saints"; }
else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6)
{ ftext = "L.C.N"; }
else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 7)
{ ftext = "Gradonacelnik"; }
else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8)
{ ftext = "ICA"; }
else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9)
{ ftext = "SAN"; }
else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 12)
{ ftext = "LosZetas"; }
else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 14)
{ ftext = "N.R"; }
else if(PlayerInfo[targetid][pMember] == 15 || PlayerInfo[targetid][pLeader] == 15)
{ ftext = "G.S.F"; }
else
{ ftext = "Nema"; }
new f2text[20];
    if(PlayerInfo[targetid][pFMember] < 255) { f2text = FamilyInfo[PlayerInfo[targetid][pFMember]][FamilyName]; }
else { f2text = "Nema"; }
    new rtext[64];

Pa ovde nemas da saljes text igracu..
...  imam originalan DV RP pa cu usporedit


public ShowStats(playerid,targetid)
{
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
{
new cash = GetPlayerMoney(targetid);
new atext[20];
if(PlayerInfo[targetid][pSex] == 1) { atext = "Musko"; }
else if(PlayerInfo[targetid][pSex] == 2) { atext = "Zensko"; }
  new otext[20];
if(PlayerInfo[targetid][pOrigin] == 1) { otext = "Srbija"; }
else if(PlayerInfo[targetid][pOrigin] == 2) { otext = "Bosna i Hercegovina"; }
else if(PlayerInfo[targetid][pOrigin] == 3) { otext = "Republika Srpska"; }
else if(PlayerInfo[targetid][pOrigin] == 4) { otext = "Hrvatska"; }
        else if(PlayerInfo[targetid][pOrigin] == 5) { otext = "Crna Gora"; }
        else if(PlayerInfo[targetid][pOrigin] == 6) { otext = "Makedonija"; }
else if(PlayerInfo[targetid][pOrigin] == 7) { otext = "Slovenija"; }
else if(PlayerInfo[targetid][pOrigin] == 8) { otext = "Ostalo"; }
         new ttext[20];
  if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { ttext = "Medic"; }
  else if(gTeam[targetid] == 3 || gTeam[targetid] == 4) { ttext = "Civilian"; }
  else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1) { ttext = "Policija"; }
  else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2) { ttext = "FBI"; }
  else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3) { ttext = "Vosjka"; }
  else if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { ttext = "LS MD"; }
  else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5) { ttext = "The Russian Mafia"; }
  else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6) { ttext = "Lesinari"; }
  else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 7) { ttext = "Predsednik"; }
  else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9) { ttext = "[CNN] Novinar"; }
  else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10) { ttext = "Taxi"; }
  else if(PlayerInfo[targetid][pMember] == 15 || PlayerInfo[targetid][pLeader] == 15) { ttext = "BHFanaticos"; }
  else if(PlayerInfo[targetid][pMember] == 16 || PlayerInfo[targetid][pLeader] == 16) { ttext = "Grove Street Family"; }
  else if(PlayerInfo[targetid][pMember] == 17 || PlayerInfo[targetid][pLeader] == 17) { ttext = "Street Racers"; }
  new dtext[20];
  if(STDPlayer[targetid] == 1) { dtext = "Chlamydia"; }
  else if(STDPlayer[targetid] == 2) { dtext = "Gonorrhea"; }
  else if(STDPlayer[targetid] == 3) { dtext = "Syphilis"; }
  else { dtext = "None"; }
   new ftext[30];
   if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1)
  { ftext = "LSPD"; }
    if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2)
  { ftext = "FBI"; }
  else if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4)
  { ftext = "LSMD"; }
  else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5)
  { ftext = "The Russian Mafia"; }
  else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6)
  { ftext = "Lesinari"; }
  else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 7)
  { ftext = "Predsednik"; }
  else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9)
  { ftext = "[CNN] Novinari"; }
  else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10)
  { ftext = "Taxi"; }
  else if(PlayerInfo[targetid][pMember] == 15 || PlayerInfo[targetid][pLeader] == 15)
  { ftext = "BHFanaticos"; }
  else if(PlayerInfo[targetid][pMember] == 16 || PlayerInfo[targetid][pLeader] == 16)
  { ftext = "Grove Street Family"; }
  else if(PlayerInfo[targetid][pMember] == 17 || PlayerInfo[targetid][pLeader] == 17)
  { ftext = "Street Racers"; }
  else
  { ftext = "None"; }
  new f2text[20];
     if(PlayerInfo[targetid][pFMember] < 255) { f2text = FamilyInfo[PlayerInfo[targetid][pFMember]][FamilyName]; }
  else { f2text = "None"; }
Poslednja Izmena: Septembar 05, 2012, 15:27:25 POSLE PODNE od Ganjah Don

Moras da napravis jos jedan string koji ce poslati igracu posao i to..
ODSUTAN