Unknow command help me
#1

Код:
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.
Reply
#2

I believe this is what you want?

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)