Command problem
#1

when i type /mafia it tells me unknown command. I compile it perfectly.

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{	
       dcmd(mafia,3,cmdtext);
	return 0;
}
Код:
dcmd_mafia(playerid,params[])
{
	#pragma unused params
	if(GetPlayerJob(playerid) != 0) return SendClientMessage(playerid,0xFFFFFFAA,"You already have a job!");
	PInfo[playerid][Job] = 1;// mafia job
	new JobID = PInfo[playerid][Job];
	pLevel[playerid][JobID] = 1;
	SendClientMessage(playerid,WHITE,"You are now a mafia!");
	return 1;
}
Reply
#2

bump!!!!!!!!!!!!!!
Reply
#3

Код:
dcmd(mafia,5,cmdtext);
5 is the number of characters of the command.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)