command doesn't work - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: command doesn't work (
/showthread.php?tid=450087)
command doesn't work -
Luca12 - 11.07.2013
So I work on command which checking someone offline player stats /check and I using yini so my problem is next let say Mark_Johnson is offline and I type /check Mark_Johnson and oke his stats write to my but the problem is example he is lvl 23 and I'm 12 then when I type coommand that /check Mark_Johnson then my lvl is 23 if you know what I mean that is the problem but I can't fix it ccan you help me if you understand this. Thanks
Re: command doesn't work -
RALL0 - 11.07.2013
Show the codes
Re: command doesn't work -
Luca12 - 11.07.2013
pawn Код:
CMD:check(playerid, params[])
{
if(PlayerInfo[playerid][Admin] >= 1337 || IsPlayerAdmin(playerid))
{
new banstatus[128], banstatusx,imestr[128],imezz[128];
if(sscanf(params,"s[128]",imezz))
{
SCM(playerid,GRAD2,"{FFAF00}Koristite: {FFFFFF}/check [Ime_Prezime]");
SCM(playerid, GRAD2, "*Napomena: Ime je osjetljivo na mala i velika slova, i takodjer mora da sadrzava donju crtu.");
return 1;
}
format(imestr, sizeof(imestr),"/Users/%s.ini",imezz);
if(!fexist(imestr)) return SCM(playerid, GRAD2,"{F81414}G-Protect: {FFFFFF}Korisnicki racun nije pronaden!");
INI_ParseFile(imestr,"getStats",.bExtra = true, .extra = playerid);
if(banstatusx == 0) banstatus = "Igrac nije banan...";
else if(banstatusx == 1) banstatus = "G-Protect: Taj je igrac banan...";
else banstatus = "N/A";
SCMF(playerid,BELA,"G-Protect: provjera igraca %s je pokrenuta...",imezz);
SCMF(playerid,COLOR_ZUTA1,"Level:[%d] AdminLV[%d] GSLevel[%d]",PlayerInfo[playerid][pLevel],PlayerInfo[playerid][Admin],PlayerInfo[playerid][pGameMaster]);
SCMF(playerid,COLOR_ZUTA1,"Zadnja aktivnost: %s",PlayerInfo[playerid][ZadnjaAktivnost]);
SCMF(playerid,COLOR_ZUTA1,"%s",banstatus);
}
else return SCM(playerid, GRAD2, "{FFFFFF}[{F81414}G-Unit{FFFFFF}] {C3C3C3}Samo Admini!");
return 1;
}
So the stats is correct I mean when I check someone offlinee player stats it' working but i get that someone player lvl
Re: command doesn't work -
RALL0 - 11.07.2013
Eh, so you get someone else his stats on the screen?
Re: command doesn't work -
Luca12 - 11.07.2013
yes that work but when I type example /check rallo and I get you stats on the screen but also your level I got you lvl 12 I 34 and I type command and my lvl is 12
Re: command doesn't work -
Luca12 - 12.07.2013
Anyone. Thanks
Re: command doesn't work -
Luca12 - 13.07.2013
Please anyone?
Re: command doesn't work -
Mitchy - 13.07.2013
What is "SCMF"?