Zeex/sampgdk — Issue #21: TextDrawShowForPlayer
Author: Tannz0rz
Created: 2011-12-15 01:22:52+00:00
State: open

After several painful hours of debugging, I've found the problem that was obstructing my progress.

In samp.cpp:
```bool TextDrawShowForPlayer(int playerid, int text) {
static AMX_NATIVE native = Wrapper::GetInstance().GetNative("TextDrawShowForPlayer");
cell params[] = {
2 * 4,
text,
text
};
return native(&::fakeAmx, params) != 0;
}```

Should be:
```bool TextDrawShowForPlayer(int playerid, int text) {
static AMX_NATIVE native = Wrapper::GetInstance().GetNative("TextDrawShowForPlayer");
cell params[] = {
2 * 4,
playerid,
text
};
return native(&::fakeAmx, params) != 0;
}```

I was bracing to write an elaborate e-mail to you Zeex (which you ought to check more often)!