stange errors
#1

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
}

Reply
#2

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


Forum Jump:


Users browsing this thread: 1 Guest(s)