SA-MP Forums Archive
stange errors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: stange errors (/showthread.php?tid=141095)



stange errors - oggylt - 11.04.2010

i recently started new gm and things started happening like no it was everything on but bum
Код:
(161) : error 021: symbol already defined: "TogglePlayerControllable"
(163) : error 010: invalid function or declaration
incavlid declaration as for comented for loop script



Код:
public OnPlayerSpawn(playerid)

	switch(GetPlayerSkin(playerid))
	{
		case 92: {SetPVarInt(playerid,"Terrorist",1);SetPlayerTeam(playerid, 1); Terrorists=Terrorists+1; SetPlayerColor(playerid,RED);}
		case 115: {SetPVarInt(playerid,"Counter_Terrorist",1);SetPlayerTeam(playerid, 2); Counter_Terrorists=Counter_Terrorists+1; SetPlayerColor(playerid,BLUE);}
	}

/*	for(new i=0; i<GetMaxPlayers(); i++)
  {
  	SetPlayerMarkerForPlayer(playerid, i, 0x0000FF00);
		if(GetPVarInt(playerid,"Terrotist")==1)
		{
		  SetPlayerMarkerForPlayer(playerid, i, RED);
		}
	}
	for(new i=0; i<GetMaxPlayers(); i++)
  {
  	SetPlayerMarkerForPlayer(playerid, i, 0x0000FF00);
		if(GetPVarInt(playerid,"Terrotist")==1)
		{
		  SetPlayerMarkerForPlayer(playerid, i, BLUE);
  	}
	}*/
	TogglePlayerControllable(playerid,1); //161 line
	GivePlayerMoney(playerid,800);    //162 line 
	return 1;                   //163 line
}




Re: stange errors - oggylt - 11.04.2010

sorry public onplayerspawn(playerid) (ancidentaly deleted "{")