How to return?
#1

hi,

sorry for my frequent posting, but I have got a problem wich is still not solved...

People told me that the problems I had in my server were because I didn't return in the right way...
I've searched the WIKI, and this forum for a tutorial on how to return but I couldn't find anything...
So if someone please can explain how to return :/


Example:
Код:
if(newstate == PLAYER_STATE_DRIVER)
	{
	    if(GetPlayerVehicleID(playerid) == 516)
        {
		    if(gTeam[playerid] != TEAM_DRIVERS)
		    {
				SendClientMessage(playerid,COLOR_ERROR,"Only Drivers can use this vehicle");
				RemovePlayerFromVehicle(playerid);
		        return 1;
			}
			GameTextForPlayer(playerid, "~w~ U entered A~y~ Lvl 3~w~ vehicle. Please drive to the ~r~ Red marker~w~, located in front of the club.", 3000, 4);
	 	            			startworkpickup = CreatePickup(1317, 14, 670.15740966797,-12752222900391,13467164993286, -1); //also, when a player enters this pickup, (if pickupid= blahblah, and then my code, it doesn't work either... but that's not in this callback
			return 1;
		}
	}

//Some other code
This is written under OnPlayerStateChange
And it does not work at all...

Please help me, and not just by correcting the script, but by explaining why and how :/
Sorry if that sounds quiet rude
Reply


Messages In This Thread
How to return? - by knackworst - 25.08.2011, 13:12
Re: How to return? - by Dragony92 - 25.08.2011, 13:16
Re: How to return? - by knackworst - 25.08.2011, 13:30
Re: How to return? - by Dragony92 - 25.08.2011, 13:35
Re: How to return? - by Jefff - 25.08.2011, 13:41
Re: How to return? - by knackworst - 25.08.2011, 13:46
Re: How to return? - by RyDeR` - 25.08.2011, 15:20
Re: How to return? - by Dragony92 - 25.08.2011, 15:38

Forum Jump:


Users browsing this thread: 1 Guest(s)