Erro ?_?
#1

Код:
if(strcmp(cmd, "/Casacmds", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid,COLOR_LIGHTGREEN,"|____________________Comandos da Casa____________________|");
SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /Entrar - /Sair - /Comprarhouse - /sellhouse - /openhouse");
SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /editrenting - /rentfee - /Alugarquarto - /housewithdraw - /housedeposit");
SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /housematsput - /housematstake - /housedrugsput - /housedrugstake");			SendClientMessage(playerid,COLOR_LIGHTGREEN,"______________________________________________________________________________________");
}
return 1;
}
Esse comando esta a funcionar a 100%

mas quando entro dentro do jogo diz Unknow command!
Nгo precebo porque, o pawno nгo apresenta erros!
Reply
#2

if(strcmp(cmd, "/Casacmds", true) == 0)
{
SendClientMessage(playerid,COLOR_LIGHTGREEN,"|____ ________________Comandos da Casa____________________|");
SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /Entrar - /Sair - /Comprarhouse - /sellhouse - /openhouse");
SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /editrenting - /rentfee - /Alugarquarto - /housewithdraw - /housedeposit");
SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /housematsput - /housematstake - /housedrugsput - /housedrugstake"); SendClientMessage(playerid,COLOR_LIGHTGREEN,"_____ __________________________________________________ _______________________________");
return 1;
}

tenta...
Reply
#3

tenta:

pawn Код:
if(strcmp(cmd, "/Casacmds", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid,COLOR_LIGHTGREEN,"|____________________Comandos da Casa____________________|");
SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /Entrar - /Sair - /Comprarhouse - /sellhouse - /openhouse");
SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /editrenting - /rentfee - /Alugarquarto - /housewithdraw - /housedeposit");
SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /housematsput - /housematstake - /housedrugsput - /housedrugstake");          SendClientMessage(playerid,COLOR_LIGHTGREEN,"______________________________________________________________________________________");
return 1;
}
return 1;
}
Reply
#4

tem certeza qe estб digitando certo? digite outro comando, vai ver bugou.
Reply
#5

Quote:
Originally Posted by Lipe_Stronda
Посмотреть сообщение
tem certeza qe estб digitando certo? digite outro comando, vai ver bugou.
Sу ta a dar os comandos de admin!

Код:
	new string[256];
	new cmd[256];
	new tmp[256];
Nгo sei se isso esta a fazer com que nгo esteja a funcionar!
Reply
#6

return 1;
}
return 1;
}

?

so vai dar problema se aquele for o primeiro comando da public ai sim й usando
return 1;
}
return 0;
}

jб dois return 1; nгo rola
Reply
#7

Quote:
Originally Posted by Stronda_Novato
Посмотреть сообщение
if(strcmp(cmd, "/Casacmds", true) == 0)
{
SendClientMessage(playerid,COLOR_LIGHTGREEN,"|____ ________________Comandos da Casa____________________|");
SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /Entrar - /Sair - /Comprarhouse - /sellhouse - /openhouse");
SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /editrenting - /rentfee - /Alugarquarto - /housewithdraw - /housedeposit");
SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /housematsput - /housematstake - /housedrugsput - /housedrugstake"); SendClientMessage(playerid,COLOR_LIGHTGREEN,"_____ __________________________________________________ _______________________________");
return 1;
}

tenta...
Quote:
Originally Posted by pr0bscur3
Посмотреть сообщение
tenta:

pawn Код:
if(strcmp(cmd, "/Casacmds", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid,COLOR_LIGHTGREEN,"|____________________Comandos da Casa____________________|");
SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /Entrar - /Sair - /Comprarhouse - /sellhouse - /openhouse");
SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /editrenting - /rentfee - /Alugarquarto - /housewithdraw - /housedeposit");
SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /housematsput - /housematstake - /housedrugsput - /housedrugstake");          SendClientMessage(playerid,COLOR_LIGHTGREEN,"______________________________________________________________________________________");
return 1;
}
return 1;
}
Tentei as duas maneiras, continua a nгo funcionar! nгo entendo!
Reply
#8

pawn Код:
if(!strcmp(cmd, "/Casacmds", true))
{
    if(!IsPlayerConnected(playerid))
 return 1;
   
    SendClientMessage   (playerid,COLOR_LIGHTGREEN,"|____________________Comandos da    Casa____________________|");
    SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /Entrar - /Sair   - /Comprarhouse - /sellhouse - /openhouse");
    SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /editrenting -    /rentfee - /Alugarquarto - /housewithdraw - /housedeposit");
    SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /housematsput -   /housematstake - /housedrugsput - /housedrugstake");               
    SendClientMessage playerid,COLOR_LIGHTGREEN,"______________________________________________________________________________________");
    return 1;
}
Reply
#9

esse й o primeiro strcmp ? ou existe outros ?

" This forum requires that you wait 120 seconds between posts. Please try again in 17 seconds. " tenso...
Reply
#10

Quote:
Originally Posted by Ricop522
Посмотреть сообщение
pawn Код:
if(!strcmp(cmd, "/Casacmds", true))
{
    if(!IsPlayerConnected(playerid))
 return 1;
   
    SendClientMessage   (playerid,COLOR_LIGHTGREEN,"|____________________Comandos da    Casa____________________|");
    SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /Entrar - /Sair   - /Comprarhouse - /sellhouse - /openhouse");
    SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /editrenting -    /rentfee - /Alugarquarto - /housewithdraw - /housedeposit");
    SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /housematsput -   /housematstake - /housedrugsput - /housedrugstake");               
    SendClientMessage playerid,COLOR_LIGHTGREEN,"______________________________________________________________________________________");
    return 1;
}
Tambem nгo funciona..

Код:
	if(strcmp(cmd, "/comandos", true) == 0 || strcmp(cmd, "/cmds", true) == 0)
	{
 		if(IsPlayerConnected(playerid))
	    {
		    SendClientMessage(playerid,COLOR_LIGHTGREEN,"|____________________Comandos____________________|");
			SendClientMessage(playerid, COLOR_WHITE, "[General:] /Estatisticas - /Horas - /Admins - /MudarPassword - /MudarSpawn - /Doar - /Ajuda - /Reportar");
			SendClientMessage(playerid, COLOR_WHITE, "[General:] /MostrarLicenзas - /MostrarBI - /Pagar - /toggle - /advertise");
			SendClientMessage(playerid, COLOR_WHITE, "[General:] /Vendar - /Desvendar - /callcar - /sellcar - /Chamar - /ListaAnim - /ProcurarCarteira");
			SendClientMessage(playerid, COLOR_WHITE, "[General:] /Amarrar - /lotto - /Dar - /PousarArma - /JuntarArma - /AceitarEmprego - /DeixarEmprego - /UsarDrogas - /Revistar");
			SendClientMessage(playerid, COLOR_WHITE, "[General:] /Comprar - /ComprarArma - /ComprarBebida - /ComprarTabaco - /ComprarRoupa - /eat - /PorMascara - /TirarMascara");
			SendClientMessage(playerid, COLOR_WHITE, "[General:] /Veiculocmds - /Casacmds - /businesscmds - /AjudaEmprego - /chatcmds - /notecmds - /phonecmds - /BancoCmds - /fishcmds");
			SendClientMessage(playerid, COLOR_WHITE, "[Other:] /Bug - /Sugestгo");
	        if (PlayerInfo[playerid][pFaction] != 255)
			{
			if(PlayerInfo[playerid][pFaction] == 0)
			{
   			SendClientMessage(playerid, COLOR_WHITE, "[Policia:] /Policiacmds");
			}
			if(PlayerInfo[playerid][pFaction] == 1)
			{
   			SendClientMessage(playerid, COLOR_WHITE, "[Groove:] /Groovecmds");
			}
			if(PlayerInfo[playerid][pFaction] == 2)
			{
   			SendClientMessage(playerid, COLOR_WHITE, "[Mafia:] /Mafiacmds");
			}
			if(PlayerInfo[playerid][pFaction] == 3)
			{
   			SendClientMessage(playerid, COLOR_WHITE, "[RC-News/Events:] /Newscmds");
			}
			if(PlayerInfo[playerid][pFaction] == 4)
			{
			SendClientMessage(playerid, COLOR_WHITE, "[Taxis:] /Taxicmds");
			}
			if(PlayerInfo[playerid][pFaction] == 5)
			{
			SendClientMessage(playerid, COLOR_WHITE, "[Hospital:] /Curar - /®adio");
			}
			if(PlayerInfo[playerid][pFaction] == 6)
			{
   			SendClientMessage(playerid, COLOR_WHITE, "[Governo:] /GovDuty");
			}
			if(PlayerInfo[playerid][pFaction] == 7)
			{
   			SendClientMessage(playerid, COLOR_WHITE, "[Mecвnicos] /duty - /repair - /refill - /tow");
			}
			if(PlayerInfo[playerid][pRank] == 1)
			{
			SendClientMessage(playerid, COLOR_WHITE, "[Lнder:] /Leadercmds");
			}
			if(PlayerInfo[playerid][pAdmin] >= 1)
			{
			SendClientMessage(playerid, COLOR_WHITE, "[Admin:] /acmds");
			}
			SendClientMessage(playerid,COLOR_LIGHTGREEN,"______________________________________________________________________________________");
	    }
	    return 1;
	}
O de cima funciona!
O de baixo jб nгo!
Код:
 	if(strcmp(cmd, "/Casacmds", true) == 0)
	{
 		if(IsPlayerConnected(playerid))
	    {
	    	SendClientMessage(playerid,COLOR_LIGHTGREEN,"|____________________Comandos da Casa____________________|");
			SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /Entrar - /Sair - /Comprarhouse - /sellhouse - /openhouse");
			SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /editrenting - /rentfee - /Alugarquarto - /housewithdraw - /housedeposit");
			SendClientMessage(playerid, COLOR_WHITE, "[Casa:] /housematsput - /housematstake - /housedrugsput - /housedrugstake");
			SendClientMessage(playerid,COLOR_LIGHTGREEN,"______________________________________________________________________________________");
     }
	    return 1;
	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)