SA-MP Forums Archive
ZCMD Not Wolking - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: ZCMD Not Wolking (/showthread.php?tid=553793)



ZCMD Not Wolking - AgusZ - 31.12.2014

How to solve this i write /pickuphunt and /gopickuphunt on command in game not working

Код:
CMD:pickuphunt(playerid,params[])
{
    if(PUHIsStarted == true)
	{
		new string[50],str[256];
		format(string,sizeof string,"%s",pickuphuntpos[PUHCommand]);
		format(str,sizeof str,"[PICKUPHUNT]: Pickup has been spawned near:{FFCC00} %s",string);
		SendClientMessage(playerid,ROSU,str);
		SendClientMessage(playerid,ROSU,"[PICKUPHUNT]: Find it and get {FFCC00}5 {00CC00}score and ${FFCC00}50000{00CC00}!");
	} else return SendClientMessage(playerid,0xFF0000FF,"[PICKUPHUNT]: Pickuphunt isn't spawned yet!");
	return 1;
}
CMD:gopickuphunt(playerid, params[])
{
	if(PUHIsStarted == true)
	{
		SetPlayerPos(playerid,pickuphunt[TestPUH][0]+1,pickuphunt[TestPUH][1]+1,pickuphunt[TestPUH][2]);
	} else return SendClientMessage(playerid,0xFF0000FF,"[PICKUPHUNT]: Pickuphunt isn't spawned yet!");
	return 1;
}



Re: ZCMD Not Wolking - DeMihawk - 31.12.2014

does not work how?


Re: ZCMD Not Wolking - leo9 - 31.12.2014

Try this if it works your code is wrong after the if
Код:
CMD:pickuphunt(playerid,params[])
{
	SendClientMessage(playerid,-1,"Working!");
	return 1;
}



Re: ZCMD Not Wolking - AgusZ - 01.01.2015

ok solved