SA-MP Forums Archive
[Ajuda] GetPVarInt e SetPVarInt - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] GetPVarInt e SetPVarInt (/showthread.php?tid=628785)



GetPVarInt e SetPVarInt - Luiiiz - 14.02.2017

Queria saber para que serve os 2. E um exemplo.


Re: GetPVarInt e SetPVarInt - johntrybescripter - 14.02.2017

nгo sei se a explicaзгo й boa mas ele basicamente guarda uma informaзгo em um momento para ser usada em outro momento, como por exemplo ao usar /vender e /aceitar...


Programando e Relaxando! - RazorGuigo - 14.02.2017

Veja estб explicaзгo й muito boa:
[Tutorial] Player Variables vs Normal Variables.


Re: GetPVarInt e SetPVarInt - JPedro - 14.02.2017

sгo variaveis pra player, por exemplo SetPVarInt(playerid, "Dinheiro", 10); seria o mesmo que Dinheiro[playerid] = 10; se nгo estou enganado, e o GetPVarInt serve pra pegar o valor dessa variavel


Re: GetPVarInt e SetPVarInt - Luiiiz - 14.02.2017

Quote:
Originally Posted by johntrybescripter
Посмотреть сообщение
nгo sei se a explicaзгo й boa mas ele basicamente guarda uma informaзгo em um momento para ser usada em outro momento, como por exemplo ao usar /vender e /aceitar...
Entгo em um comando /convidar eu posso usar SetPVarInt para nick? Tipo pegar o nick dele e no /aceitar por o nick dele lб?


Respuesta: Re: GetPVarInt e SetPVarInt - SammyJ - 14.02.2017

Quote:
Originally Posted by Luiiiz
Посмотреть сообщение
Entгo em um comando /convidar eu posso usar SetPVarInt para nick? Tipo pegar o nick dele e no /aceitar por o nick dele lб?
sim. mas seria com

SetPVarString

GetPVarString


Re: GetPVarInt e SetPVarInt - RodrigoMSR - 14.02.2017

Serve mais como variбvel global para todos os filterscripts e gamemode, ъtil para includes.


Re: GetPVarInt e SetPVarInt - ViniBorn - 16.02.2017

Como armazena um valor/string/ etc, tambйm pode ser usado para comunicaзгo entre o GM e FS, por exemplo