Problem with function and FS
#1

I edited one function into this:

Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
	if( oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER )
	{
		If they got into a car from being on foot.
		if( GetVehicleModel(GetPlayerVehicleID( playerid )) == 428 )
		{
			if( GetPlayerSkin(playerid) != 27 )
			{
				If their skin is not 27
				Remove them and send message.
				RemovePlayerFromVehicle( playerid );
				SendClientMessage( playerid,0xFF000000, "Noredami vairuoti si transporta turite buti elektriku" ); -1
				return 1;
			}
			else
			{
				SendClientMessage(playerid, 0xFF000000, "Atsisedote i transporta. Jeigu dirbate, tada dirbkite savo darba");
				return 1;
			}
		}
	}
	return 1;
}
After that my one Filterscript bugged. I wrote command /apsaugoti 1, same with /nepasaugoti 1 (1 is player id for ex.)
A command text is bugged. I tryed to mark this function with slash: //
It's not helped. If what its a link for this FS: http://www.mediafire.com/?a48e5jk53hsrq4q
P.S that FS don't have errors and another thing my NPC bot stopped to join into server.

Problem is, my FS and NPC bot stopped to work.
Reply


Messages In This Thread
Problem with function and FS - by Artie_Scorpion - 02.01.2012, 15:02
Re: Problem with function and FS - by Artie_Scorpion - 02.01.2012, 15:15
Re: Problem with function and FS - by silvan - 02.01.2012, 15:16
Re: Problem with function and FS - by Artie_Scorpion - 02.01.2012, 15:18
Re: Problem with function and FS - by Artie_Scorpion - 02.01.2012, 15:20

Forum Jump:


Users browsing this thread: 1 Guest(s)