Ajuda
#5

Quote:
Originally Posted by andmeida10
isso vc coloca no OnPlayerCommandText...


criar uma lista de comandos:

Код:
if (strcmp("/teles", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,COR,"Bem-vindo ao coiso dos comandos");
SendClientMessage(playerid,COR,"/o cmd : o k faz");
SendClientMessage(playerid,COR,"/o cmd : o k faz");
SendClientMessage(playerid,COR,"/o cmd : o k faz");
SendClientMessage(playerid,COR,"/o cmd : o k faz");
SendClientMessage(playerid,"/o cmd : o k faz");
}
ai cara eu coloquei assim:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
 	if (strcmp("/mycommand", cmdtext, true, 10) == 0)

	if(strcmp(cmdtext,"/Rampa",true)==0)
	{
	new vehicleid = GetPlayerVehicleID(playerid);
	new State = GetPlayerState(playerid);
	if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
	{
	GameTextForPlayer(playerid,"Bem-Vindo(a) a Rampa!",4000,6);
	LinkVehicleToInterior(vehicleid,0);
	SetPlayerInterior(playerid,0);
	return SetVehiclePos(vehicleid,2158.4670410156 1042.2408447266 2267.8205566406);
	}
	SetPlayerPos(playerid,2158.4670410156 1042.2408447266 2267.8205566406);
	SetPlayerInterior(playerid,0);
	GameTextForPlayer(playerid,"Bem-Vindo(a) a Rampa!",4000,6);
	return 1;
	}
	{
		// Do something here
	
		return 1;
	}
	return 0;
}
e n da certo, eu ate cliquei pra compilar pra v se dava algum erro e dava isso:

Код:
C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\filterscripts\Revolution_GTA_Online.pwn(151) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\filterscripts\Revolution_GTA_Online.pwn(151) : warning 217: loose indentation
C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\filterscripts\Revolution_GTA_Online.pwn(151) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\filterscripts\Revolution_GTA_Online.pwn(164) : error 001: expected token: ",", but found "-rational value-"
C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\filterscripts\Revolution_GTA_Online.pwn(164) : warning 215: expression has no effect
C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\filterscripts\Revolution_GTA_Online.pwn(164) : error 001: expected token: ";", but found "-rational value-"
C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\filterscripts\Revolution_GTA_Online.pwn(164) : warning 215: expression has no effect
C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\filterscripts\Revolution_GTA_Online.pwn(164) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\filterscripts\Revolution_GTA_Online.pwn(164) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
tem como me ajuda?
Reply


Messages In This Thread
Ajuda - by seykan - 17.02.2010, 03:02
Re: Ajuda - by andmeida10 - 17.02.2010, 07:27
Re: Ajuda - by OxygenBR - 17.02.2010, 07:33
Re: Ajuda - by andmeida10 - 17.02.2010, 07:50
Re: Ajuda - by seykan - 17.02.2010, 12:54
Re: Ajuda - by andmeida10 - 17.02.2010, 13:02
Re: Ajuda - by Lucas_Brasil - 17.02.2010, 13:06
Re: Ajuda - by seykan - 17.02.2010, 13:07
Re: Ajuda - by speliarmos - 17.02.2010, 13:19
Re: Ajuda - by seykan - 17.02.2010, 13:23

Forum Jump:


Users browsing this thread: 1 Guest(s)