Unknown Stats Command - 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: Unknown Stats Command (
/showthread.php?tid=475077)
Unknown Stats Command -
ValiLucifer - 11.11.2013
Код:
CMD:stats(playerid, params[]) {
if (gPlayerLogged{playerid} != 0) {
ShowStats(playerid,playerid);
}
return 1;
}
Re: Unknown Stats Command -
newbie scripter - 11.11.2013
pawn Код:
CMD:stats(playerid, params[])
{
if(gPlayerLogged(playerid) != 0) // be sure u made a "new"
{
//ShowStats Function
}
return 1;
}
This forum requires that you wait 240 seconds between posts. Please try again in 63 seconds. :@ (if helped, rep +

)
Re: Unknown Stats Command -
FUNExtreme - 11.11.2013
Quote:
Originally Posted by newbie scripter
pawn Код:
CMD:stats(playerid, params[]) { if(gPlayerLogged(playerid) != 0) // be sure u made a "new" { //ShowStats Function } return 1; }
This forum requires that you wait 240 seconds between posts. Please try again in 63 seconds. :@ (if helped, rep +  )
|
Don't tell me that you think the placement of the brackets is the problem....
@OP: The best guess would be that something in your ShowStats breaks the command. Because it doesn't show any output. If the player wasn't logged in then it wouldnt show that because you have return 1 in your command. So seeing as it never reaches the return 1 it has to be in the sow function
Re: Unknown Stats Command -
ValiLucifer - 11.11.2013
It is working in our test server but it doesn't work in hosted server.
Re: Unknown Stats Command -
NeMoK - 11.11.2013
pawn Код:
CMD:stats(playerid, params[])
{
if(gPlayerLogged[playerid]!=0)
{
ShowStats(playerid,playerid);
}
return 1;
}
Re: Unknown Stats Command -
ValiLucifer - 11.11.2013
Can anyone help me to solve it?
Re: Unknown Stats Command -
ValiLucifer - 11.11.2013
BUMP~
Re: Unknown Stats Command -
Loot - 11.11.2013
pawn Код:
CMD:stats(playerid, params[])
{
if (gPlayerLogged{playerid} != 0)
{
//ShowStats(playerid,playerid); // usually in show stats CMD you need only 1 parameter which is playerid, but not twice of that unless if this is how to set that function
ShowStats(playerid);
}
return 1;
}
Also, show us there gPlayerLogged{playerid} is being used in your code.
Re: Unknown Stats Command -
ValiLucifer - 11.11.2013
Who can help me via Team Viewer? The /stats command is working in our test server but it doesn't work in Vortex Server.
Re: Unknown Stats Command -
ValiLucifer - 11.11.2013
Bump~