SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 10 of 10
Search took 0.00 seconds.
Search: Posts Made By: ColeMiner
Forum: Discussion 12/03/2014, 05:35 PM
Replies: 148
Views: 26,197
Posted By ColeMiner
Re: Gamemode Script Layout

SA:MP hasn't upgraded because doing so would break almost every script ever, not just the "hacky" ones. Yes, we have pushed the limits of the current version and upgrading would require some major...
Forum: Discussion 11/03/2014, 10:35 AM
Replies: 148
Views: 26,197
Posted By ColeMiner
Re: Gamemode Script Layout

What's the problem again sorry?
Forum: Discussion 06/03/2014, 09:54 AM
Replies: 148
Views: 26,197
Posted By ColeMiner
Re: Gamemode Script Layout

Mainly just scope and separation - your modules would be defined in multiple files, and depend on being included in exactly the correct order.
Forum: Discussion 06/03/2014, 04:32 AM
Replies: 148
Views: 26,197
Posted By ColeMiner
Re: Gamemode Script Layout

If you want every module to have an ordered dependency on every other module, then you need to code that ordered dependency. The SLIGHTLY simpler way is to have a chain instead - module1 includes...
Forum: Discussion 06/03/2014, 04:29 AM
Replies: 148
Views: 26,197
Posted By ColeMiner
Re: Gamemode Script Layout

That still sounds like the problem I gave you the solution for:

"module1.inc":


static gLastSet;

nhook My_SetPlayerPos(playerid, Float:x, Float:y, Float:z) // Imagine that works.
{...
Forum: Discussion 06/03/2014, 04:03 AM
Replies: 148
Views: 26,197
Posted By ColeMiner
Re: Gamemode Script Layout

No, by "file" I meant the first include that needs hooked functions from the second include - I'm just assuming that they include each other instead of needing a centralised file including...
Forum: Discussion 06/03/2014, 03:42 AM
Replies: 148
Views: 26,197
Posted By ColeMiner
Re: Gamemode Script Layout

Have the hooks at the top of the file, include the other file in the middle of the file, then do the remainder of the code at the end of the file.
Forum: Discussion 04/03/2014, 03:11 PM
Replies: 148
Views: 26,197
Posted By ColeMiner
Re: Gamemode Script Layout

The thing I would still be worried about with that solution is that the overheads of calling the custom callbacks in multiple modules would be slower than the overheads of having a separate loop in...
Forum: Discussion 04/03/2014, 10:05 AM
Replies: 148
Views: 26,197
Posted By ColeMiner
Re: Gamemode Script Layout

Fair enough. Sorry.



Short answer: I don't know.

That is a VERY good question, and now you've got me thinking about possible solutions - I don't have one at this time sadly. Something like...
Forum: Discussion 03/03/2014, 06:30 PM
Replies: 148
Views: 26,197
Posted By ColeMiner
Re: Gamemode Script Layout

You SHOULD read more - everyone should! Anyway, clearly you got the main points of my post despite it being "boring" and "academic" (programming is a very mental subject btw, so it IS academic). ...
Showing results 1 to 10 of 10

 

All times are GMT. The time now is 12:27 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.