when i type in the command, it saids server unknow command
#1

Код:
if(strcmp(cmd, "/spayday", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(PlayerInfo[playerid][pAdmin] >= 1337)
	        {
	            PayDay();
			}
		}
		return 1;
	}
Reply
#2

Be sure there is return 1 under onplayercommandtext
Reply
#3

make sure you're admin 1337 or more.
Reply
#4

Why are you using IsPlayerConnected? Since when can a player that is NOT ON THE SERVER, type a command ON THE SERVER?

Perhaps PayDay(); is causing a crash. Print debug messages to find out.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)