Problema na HORA DE COMPILAR! Acho que й simples
#1

Tipo, fui compilar meu Game mode e da esse seguinte erro:


Код:
C:\Documents and Settings\day\Meus documentos\Downloads\GamerX 3.3b\gamemodes\gamerx.pwn(27716 -- 27717) : error 001: expected token: ",", but found "-identifier-"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Aqui o comando e a linha do erro:


Код:
	if(strcmp(cmd, "/home", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
		{
			if(PlayerInfo[playerid][pPHousekey] != 255)
			{
			    if(PlayerOnMission[playerid] > 0)
			    {
			        SendClientMessage(playerid, COLOR_GREY, "   On a mission right now, can't use this command !");
			        return 1;
			    }
				SetPlayerCheckpoint(playerid,HouseInfo[PlayerInfo[playerid][pPHousekey]][hEntrancex], HouseInfo[PlayerInfo[playerid][pPHousekey]][hEntrancey], HouseInfo[PlayerInfo[playerid][pPHousekey]][hEntrancez], 4.0);
				GameTextForPlayer(playerid, "~w~Waypoint set ~r~Home", 5000, 1);
				gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
			}     <<Dessa linha 27616
			else               <<< 27617
			{    <<< Atй essa! 27618
				GameTextForPlayer(playerid, "~w~Voce nao tem casa", 5000, 1);
			}
		}
		return 1;
	}
Reply
#2

pawn Код:
SetPlayerCheckpoint(playerid,HouseInfo[PlayerInfo[playerid][pPHousekey]][hEntrancex], HouseInfo[PlayerInfo[playerid][pPHousekey]][hEntrancey], HouseInfo[PlayerInfo[playerid][pPHousekey]][hEntrancez], 4.0);
Esta linha esta errada.
Reply
#3

Quote:
Originally Posted by Domozinho
Посмотреть сообщение
pawn Код:
SetPlayerCheckpoint(playerid,HouseInfo[PlayerInfo[playerid][pPHousekey]][hEntrancex], HouseInfo[PlayerInfo[playerid][pPHousekey]][hEntrancey], HouseInfo[PlayerInfo[playerid][pPHousekey]][hEntrancez], 4.0);
Esta linha esta errada.
Como arrumo?
Reply
#4

pawn Код:
SetPlayerCheckpoint(playerid,HouseInfo(PlayerInfo[playerid][pPHousekey])[hEntrancex], HouseInfo(PlayerInfo[playerid][pPHousekey])[hEntrancey], HouseInfo(PlayerInfo[playerid][pPHousekey])[hEntrancez], 4.0);
Tenta ae nгo tenho seu gamemode.
Reply
#5

Nгo foi ;(
Meu GameMode й o GamerX 3.3b
Se quiser alguma linha de codigo eu te mando.
Reply
#6

UP
Ajudem porfavor. Desculpa o Double mas й porque preciso termina de editar meu serve o quanto antes...
Reply
#7

Adicione meu MSN pelo perfil.
Reply
#8

Ja te adicionei, up para alguem ver!
Reply
#9

Tenta ae:
Код:
if(strcmp(cmd, "/home", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pPHousekey] != 255)
{
if(PlayerOnMission[playerid] > 0)
{
SendClientMessage(playerid, COLOR_GREY, "   On a mission right now, can't use this command !");
return 1;
}
else
{
SetPlayerCheckpoint(playerid,HouseInfo[PlayerInfo[playerid][pPHousekey]][hEntrancex], HouseInfo[PlayerInfo[playerid][pPHousekey]][hEntrancey], HouseInfo[PlayerInfo[playerid][pPHousekey]][hEntrancez], 4.0);
GameTextForPlayer(playerid, "~w~Waypoint set ~r~Home", 5000, 1);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
}
}     
else               
{    
GameTextForPlayer(playerid, "~w~Voce nao tem casa", 5000, 1);
}
}
return 1;
}
Nгo testei, mas acho que tб certo. Espero ter ajudado.
Reply
#10

Quote:
Originally Posted by ManoLexuS
Посмотреть сообщение
Tenta ae:
Код:
if(strcmp(cmd, "/home", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pPHousekey] != 255)
{
if(PlayerOnMission[playerid] > 0)
{
SendClientMessage(playerid, COLOR_GREY, "   On a mission right now, can't use this command !");
return 1;
}
else
{
SetPlayerCheckpoint(playerid,HouseInfo[PlayerInfo[playerid][pPHousekey]][hEntrancex], HouseInfo[PlayerInfo[playerid][pPHousekey]][hEntrancey], HouseInfo[PlayerInfo[playerid][pPHousekey]][hEntrancez], 4.0);
GameTextForPlayer(playerid, "~w~Waypoint set ~r~Home", 5000, 1);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
}
}     
else               
{    
GameTextForPlayer(playerid, "~w~Voce nao tem casa", 5000, 1);
}
}
return 1;
}
Nгo testei, mas acho que tб certo. Espero ter ajudado.
Obrigado vo ver aqui
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)