SA-MP Forums Archive
Unknow command help me - 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: Unknow command help me (/showthread.php?tid=571186)



Unknow command help me - Ale1234 - 16.04.2015

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
		new success;
		{
     	if(!success) return SendClientMessage(playerid,PLAVA,"GRESKA: Komanda koju ste napisali je nepostojeca!");
     	return true;
  		}
		
	 	return 1 ;
}

Error:


C:\Users\Ewony\Desktop\New folder\gamemodes\PCRP.pwn(633) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.


Re: Unknow command help me - EiresJason - 16.04.2015

I believe this is what you want?

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) {
    SendClientMessage(playerid,PLAVA,"GRESKA: Komanda koju ste napisali je nepostojeca!");
    return 1 ;
}



Re: Unknow command help me - Ale1234 - 16.04.2015

Quote:
Originally Posted by EiresJason
Посмотреть сообщение
I believe this is what you want?

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) {
    SendClientMessage(playerid,PLAVA,"GRESKA: Komanda koju ste napisali je nepostojeca!");
    return 1 ;
}
Thanks its work