SA-MP Forums Archive
How to get string from textdraw? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to get string from textdraw? (/showthread.php?tid=272276)



Fixed! - OUL - 27.07.2011

fixed!


Re: How to get string from textdraw? - OUL - 27.07.2011

bump(srry)


Re: How to get string from textdraw? - AndreT - 27.07.2011

Pressing numpad keys isn't detected (well, NUMPAD 2, 4, 6 and 8 are), so you will need a better solution for your calling system.


Re: How to get string from textdraw? - OUL - 27.07.2011

You didn't understand me but i figured out how to do that but i still have one small problem:

pawn Код:
new string2 = GetPVarInt(playerid, "Number");
format(string,60,"%d3",string2);
SetPVarInt(playerid, "Number", string);
OFC problem is in this 'SetPVarInt(playerid, "Number", string);'
I'm trying to LOAD data from PVar called 'Number' and add one number (in this case is that number 3) and put again that in PVar

I don't have an idea how to make that i know i shoud use PVarString but later i need to use StringToInt to can read string from '%d'

Maybe when i use strval?


Re: How to get string from textdraw? - OUL - 27.07.2011

fixed!


Re: How to get string from textdraw? - AndreT - 27.07.2011

Use strval, yes.
pawn Код:
SetPVarInt(playerid, "Number", strval(string));
// edit: sorry, I started writing before you modified your posts