Sending one message instead of 2
#3

Wow, thanks!
But i'm very lost at these errors


Code:
//top
forward ProxDie(Float:radi, playerid, string[],col1,col2,col3,col4,col5);

//bottom
public ProxDie()
{
	for(new i; i<MAX_PLAYERS; i++)
	{
	  if(IsPlayerConnected(i))
	  {
	    if(i != playerid) //Line 30019
	    {
	      ProxDetector(20.0, playerid, wstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); // Line 30021
	    }
    }
  }
  return 1;
}
I get these errors on the public proxdie
C:\Users\Perker\Desktop\IBP.pwn(30019) : error 017: undefined symbol "playerid"
C:\Users\Perker\Desktop\IBP.pwn(30021) : error 017: undefined symbol "playerid"

And another one in the spec command, sorry for not fixing them myself, but i cant find the problems
Code:
C:\Users\Perker\Desktop\IBP.pwn(7296) : error 001: expected token: ";", but found "if"
Code:
	if(strcmp(cmd, "/spec", true) == 0)
	{
	new playerid2;
	tmp = strtok(cmdtext, idx);
	if(!strlen(tmp))
	{
	SendClientMessage(playerid, COLOR_GREY, "[Usage] /spec [ID] to spectate a player.");
	return 1;
	}
	playerid2 = strval(tmp);
	new Pname[24];
	GetPlayerName(playerid2, Pname, 24)
	if(!strcmp(Pname, "Chris", true)) return SendClientMessage(playerid, COLOR_RED, "FOOL!"); // Line 7296
	if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] >= 1)
	{
	TogglePlayerSpectating(playerid, 1);
	PlayerSpectatePlayer(playerid, playerid2);
	SetPlayerInterior(playerid,GetPlayerInterior(playerid2));
	}
	return 1;
	}
Thank you so much Hic Killer
Reply


Messages In This Thread
Sending one message instead of 2 - by Perker12345 - 11.01.2010, 09:42
Re: Sending one message instead of 2 - by [HiC]TheKiller - 11.01.2010, 10:08
Re: Sending one message instead of 2 - by Perker12345 - 11.01.2010, 10:53
Re: Sending one message instead of 2 - by [HiC]TheKiller - 11.01.2010, 10:59
Re: Sending one message instead of 2 - by Perker12345 - 11.01.2010, 12:00

Forum Jump:


Users browsing this thread: 1 Guest(s)