IsPlayerLoggedIn Help.
#1

FIXED

Hey everyone,

Im pretty much stumped on IsPlayerLogged for my commands.

I put in this stock to make it actually work which I found somewhere else!

EX:
Код:
stock IsPlayerLoggedIn(playerid)
{
if(YourVariable[Logged] == 1) return 1;
else if(YourVariable[Logged] == 0) return 0;
}
What am I supposed to put in for "YourVariable" ?

Trying to make this command with this stock.

Ex:

Код:
CMD:backpack(playerid, params[])
{
	if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GRAD1,"You have to be logged in to use that command!");
    SetPlayerAttachedObject(playerid, 1, 363, 1, 0.300000, -0.14,0.2, 0.000000, 90, 359.5022,1,1,1);
    return 1;
}
ERRORS:
Код:
error 017: undefined symbol "YourVariable"
error 017: undefined symbol "Logged"
error 029: invalid expression, assumed zero
Thanks!
Reply


Messages In This Thread
IsPlayerLoggedIn Help. [FIXED] - by aaleks123 - 28.12.2013, 17:08
Re: IsPlayerLoggedIn Help. - by Lordzy - 28.12.2013, 17:13
Re: IsPlayerLoggedIn Help. - by ToiletDuck - 28.12.2013, 17:15
Re: IsPlayerLoggedIn Help. - by aaleks123 - 28.12.2013, 17:15
Re: IsPlayerLoggedIn Help. - by aaleks123 - 28.12.2013, 17:20
Re: IsPlayerLoggedIn Help. - by ToiletDuck - 28.12.2013, 17:22

Forum Jump:


Users browsing this thread: 2 Guest(s)