How to get string from textdraw?
#1

fixed!
Reply
#2

bump(srry)
Reply
#3

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.
Reply
#4

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?
Reply
#5

fixed!
Reply
#6

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


Forum Jump:


Users browsing this thread: 2 Guest(s)