Is there any way to use function like format to change the PVAR variables(string) value?
#1

Is there any way to use function like format to change the PVAR variables(string) value?
That can let PVAR string variables more useful.
Reply
#2

P(ussy)Vars are completely useless, use proper variables.
Reply
#3

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
P(ussy)Vars are completely useless, use proper variables.
But it is useful for sometimes, such as MySQL query. So, I need to use function like format to combine the strings.
Reply
#4

No, what's wrong with SetPVarString?

pawn Код:
new string[64];
SetPVarString(playerid, "MyString", "Sup?");
GetPVarString(playerid, "MyString", string, sizeof(string));
Reply
#5

Quote:
Originally Posted by Emmet_
Посмотреть сообщение
No, what's wrong with SetPVarString?

pawn Код:
new string[64];
SetPVarString(playerid, "MyString", "Sup?");
GetPVarString(playerid, "MyString", string, sizeof(string));
How can combine strings and save as a PVar variables by using SetPVarString?
Reply
#6

Waiting for answer...
Reply
#7

Do you mean by "combine strings" to insert the one to the other? I lost you, explain in details what you want to do, please.
Reply
#8

Quote:
Originally Posted by ******
Посмотреть сообщение
You need to copy the PVar in to a regular string, manipulate it there, then save it back again.
I think about that before, but I don't know what huge will the string be, so I can't do that.
Reply
#9

Quote:
Originally Posted by ******
Посмотреть сообщение
You need to copy the PVar in to a regular string, manipulate it there, then save it back again.
Is there any way to create a new dynamic variables in PAWN?
Reply
#10

You mean

pawn Код:
SetPVarInt(player,GetPVarString(player,"NameOfIntVar"),GetPVarInt(player,"ValueOfIntVar"));
??


a question.. to @****** will server EXPLODE if i do that?
pawn Код:
SetPVarInt(player,GetPVarString(player,GetPVarString(player,"NameOfStringForPVar")),GetPVarInt(player,GetPVarString(player,"NameOfIntStringForPVar")));
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)