Unknown Stats Command
#1

Код:
CMD:stats(playerid, params[]) {
	if (gPlayerLogged{playerid} != 0) {
		ShowStats(playerid,playerid);
	}
	return 1;
}
Reply
#2

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 + )
Reply
#3

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
Reply
#4

It is working in our test server but it doesn't work in hosted server.

Reply
#5

pawn Код:
CMD:stats(playerid, params[])
{
    if(gPlayerLogged[playerid]!=0)
       {
        ShowStats(playerid,playerid);
        }
return 1;
}
Reply
#6

Can anyone help me to solve it?
Reply
#7

BUMP~
Reply
#8

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.
Reply
#9

Who can help me via Team Viewer? The /stats command is working in our test server but it doesn't work in Vortex Server.
Reply
#10

Bump~
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)