Jump to content

Question

Posted

Salut Sa:Mp.Ro , am facut de curand un filterscript si imi da erorile/warningurile astea:

[pawn](63) : error 017: undefined symbol "InTDM"

(63) : warning 215: expression has no effect

(63) : error 001: expected token: ";", but found "]"

(63) : error 029: invalid expression, assumed zero

(63) : fatal error 107: too many error messages on one line[/pawn]

Si nu inteleg dece , am pus new InTDM[MAX_PLAYERS]; etc...

Uitati linia la care da erorile/warningurile:

[pawn]public OnPlayerSpawn(playerid)

{

if(InTDM[playerid] == 1)

{

            SetPlayerPos(playerid, 3.6017,1479.1057,12.7560);

    inTDM[playerid] = 1;

}

return 1;

}[/pawn]

6 answers to this question

Recommended Posts

Posted

sterge inTDM[playerid] = 1;

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Posted
public OnPlayerSpawn(playerid)
{
	if(inTDM[playerid] == 1)
	{
            SetPlayerPos(playerid, 3.6017,1479.1057,12.7560);
	}
	return 1;
}

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Posted

enum DMEnum
{
	TDM,
};
new PlayerInDM[MAX_PLAYERS][DMEnum];
public OnPlayerSpawn(playerid)
{
   if(PlayerInDM[playerid][TDM] == 1)
   { 
            SetPlayerPos(playerid, 3.6017,1479.1057,12.7560);
    }
    return 1;
}

la comanda PlayerInDM[playerid][TDM] = 1;

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.