How much wood can a wood chuck, chuck? (Tree cutting script)
#6

Quote:
Originally Posted by MP2
Посмотреть сообщение
Oh my god, how can you code like that?! Learn to indent and use spacing!

Show your IsPlayerNearObject function. I have a feeling it takes an object ID not a model ID. Also, wouldn't a chainsaw make more sense than a knife?

Also, you should use defines like WEAPON_KNIFE instead of '4', so when you come back to that code in 3 years you can understand it. I mean, you probably still would, but it helps.
if(IsPlayerNearObject(playerid, 837, 10.0))



its on the post (See above)


837 is the object id for a piece of dead wood (.like a log)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)