Comments (7)
How To Fix Sir ?
from samp-textdraw-streamer.
Use:
if(IsValidDynamicPlayerTextDraw(playerid, PlayerText:textid))
{
DestroyDynamicPlayerTextDraw(playerid, textid);
}
from samp-textdraw-streamer.
Use:
if(IsValidDynamicPlayerTextDraw(playerid, PlayerText:textid)) { DestroyDynamicPlayerTextDraw(playerid, textid); }
I used that code but it doesn't work for the script sir
from samp-textdraw-streamer.
The textdraw doesn't even disappear
from samp-textdraw-streamer.
Show your codes.
from samp-textdraw-streamer.
I have this problem too
from samp-textdraw-streamer.
This problem is caused by you or the person who made the script you are using. When you delete a textdraw, the plugin completely deletes the ID in the repository. When you try to delete it again, you get this error. Actually, the problem stems from the fact that you don't give -1 value to the textdraw variable after deleting the textdraw.
Incorrect Use:
Test_Textdraw[playerid] = CreatePlayerTextDraw(playerid, 0.0, 0.0, "Test");
PlayerTextDrawDestroy(playerid, Test_Textdraw[playerid]); // OK
PlayerTextDrawDestroy(playerid, Test_Textdraw[playerid]); // Error
// Or
for(new i = 0; i < 2; i++)
{
// i == 0 :: OK
// i == 1 :: Error
PlayerTextDrawDestroy(playerid, Test_Textdraw[playerid]);
}
Correct Usage:
new PlayerText:Test_Textdraw[MAX_PLAYERS];
Test_Textdraw[playerid] = CreatePlayerTextDraw(playerid, 0.0, 0.0, "Test");
if(Test_Textdraw[playerid] != PlayerText:-1)
{
PlayerTextDrawDestroy(playerid, Test_Textdraw[playerid]);
Test_Textdraw[playerid] = PlayerText:-1;
}
// Or
for(new i = 0; i < 2; i++)
{
if(Test_Textdraw[playerid] != PlayerText:-1)
{
PlayerTextDrawDestroy(playerid, Test_Textdraw[playerid]);
Test_Textdraw[playerid] = PlayerText:-1;
}
}
// Or
if(IsValidDynamicPlayerTextDraw(playerid, Test_Textdraw[playerid]))
{
PlayerTextDrawDestroy(playerid, Test_Textdraw[playerid]);
}
from samp-textdraw-streamer.
Related Issues (20)
- PlayerTextDrawSetPos, PlayerTextDrawSetPreviewRot HOT 2
- how to fix that HOT 1
- How to use Selectable Textdraws? HOT 14
- i got error
- GLIBC_2.34 HOT 10
- [textdraw.streamer] DestroyDynamicPlayerTextDraw: No such id was found. (playerid: 0, textId: 0) (NOTIFIKASISYSTEM\SHOWITEMBOX.pwn:19) HOT 3
- does it work on filterscripts ? HOT 5
- hmm after including HOT 7
- undefined symbol __file HOT 1
- Textdraw colors aren't right HOT 5
- Player Has Stuck like a play animation After Open Textdraw HOT 1
- [SOLVED] Help me on this issue
- Stuck Animation & Broken TextDraw HOT 3
- td's not working properly HOT 1
- Help me HOT 1
- hello help please HOT 7
- as textdraw ficou bugada. HOT 11
- help me please! HOT 1
- Is it bypass sprite limits? HOT 2
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 samp-textdraw-streamer.