Comments (9)
G and W might work, not certain about D, it seems it uses outdated api. Y uses Command_TouchNamed which is not ported (no idea when it will be)
from ysi-includes.
I still use W, that's really the only one I ever used (I have renamed it to "Sleep"). The others would be nice shortcuts though, I'd like to see this.
from ysi-includes.
I actually think this will just work:
https://github.com/Misiur/YSI-Includes/blob/master/y_commands.inc#L1104-L1156
from ysi-includes.
How did I miss that? Huh.
from ysi-includes.
Okay, I test it and here are results:
First problem - undefinited symbol E_CALLBACK_DATA
I find it's in y_inline so i just put #include <YSI\y_inline>
. Next error undefinited symbol E_CALLBACK_DATA_FLAGS
What I must do? It's in public @QWERTY_Wait(a, b, c, d)
Thanks
from ysi-includes.
@PatchwerkQWER: That's weird, I have the following included and it works fine:
#include <YSI\y_inline>
#include <YSI\y_commands>
#include <YSI\y_dialog>
from ysi-includes.
This is how I have my sleep function:
#define Sleep(%0)%1; {new QWERTY@W;static const _QWERTY@W[]="@WAIT:...:";if(!Inline_Loop(INLINE_LOOP_PATTERNS,QWERTY@W,_QWERTY@W))return QWERTY_Wait((%0),callback_tag:_QWERTY@W);}
forward @QWERTY_Wait(a, b, c, d); public @QWERTY_Wait(a, b, c, d)
{
new
res[E_CALLBACK_DATA];
res[E_CALLBACK_DATA_FLAGS] = e_CALLBACK_FLAGS:a;
res[E_CALLBACK_DATA_POINTER] = b;
res[E_CALLBACK_DATA_FORMAT] = c;
res[E_CALLBACK_DATA_ALLOC] = Alloc:d;
Callback_Call(res);
Callback_Release(res);
}
stock QWERTY_Wait(delay, callback:c)
{
new
res[E_CALLBACK_DATA];
Callback_Get(c, res, _F<>);
SetTimerEx("@QWERTY_Wait", delay, false, "iiii", _:res[E_CALLBACK_DATA_FLAGS], res[E_CALLBACK_DATA_POINTER], res[E_CALLBACK_DATA_FORMAT], _:res[E_CALLBACK_DATA_ALLOC]);
return cellmin;
}
This was taken directly from QWERTYUIOP, just renamed the function to "Sleep."
from ysi-includes.
Fuck, I just realised that I haven't compiled that script since YSI 3.1, the E_CALLBACK_DATA_FLAGS is in YSI 3.1's y_inline.
https://github.com/Misiur/YSI/blob/33c14380439f644298dde83715973246d29153a4/pawno/include/YSI/y_inline.inc
from ysi-includes.
Oh, I was wrong about D, it uses macros from y_text, so it should work as well! So, I know only of problem with new inline functions api.
from ysi-includes.
Related Issues (20)
- (error) undefined symbol "Dialog_ShowPlayerNative HOT 2
- Error when using y_commands HOT 1
- Error when updating YSI HOT 2
- Long callback execution detected (hang or performance issue) or DDoS Attack HOT 1
- Issues with using y_iterator HOT 1
- y_inline_timers calling the timer function twice HOT 1
- AMX Size HOT 1
- Can't include y_races
- error complil HOT 1
- Y_Hooks not called with 3.10.11 Compiler and Open.MP HOT 2
- y_functional_funcs.inc(1154) : error 017: undefined symbol "j"
- bcrypt_delete File or function is not found since last YSI Update. HOT 4
- \pawno\include\YSI_Data\y_foreach\y_foreach_entry.inc(137) : fatal error 111: user error: Old <foreach.inc> found - delete it.
- Unable to compile with y_zonenames and y_races
- pawn.cc crashes when i use the last version of ysi includes
- helpp me YSI HOT 1
- Where is the documentation for y_unique ?? quick-start.md is empty file HOT 1
- foreach prob HOT 2
- *** YSI Error: No known BCrypt plugin is loaded. Load Lassir or Sreyas-Sreelal!
- y_unique doesn't work with stock
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ysi-includes.