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


Messages In This Thread
Command problem - by Mehtab - 08.12.2010, 18:10
Re: Command problem - by Mehtab - 08.12.2010, 18:40
Respuesta: Command problem - by Quantum - 08.12.2010, 18:59

Forum Jump:


Users browsing this thread: 2 Guest(s)