25.08.2011, 13:12
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:
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
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
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