02.04.2010, 23:55 
	
	
	Quote:
| 
 
					Originally Posted by Krozz  
Quote: 
  | 
| 
 
					Originally Posted by Krozz  
Quote: 
  | 
static Text:textdraw[MAX_PLAYERS];
textdraw[playerid]=TextDrawCreate(0.0,0.0,"Text Draw Example");
SetPVarInt(playerid, "MyTextDraw", _:TextDrawCreate(0.0, 0.0, "Text Draw Example"));
TextDrawShowForPlayer(playerid, Text:GetPVarInt(playerid, "MyTextDraw"));
| 
 
					Originally Posted by Toribio  
Yes, you can use: 
pawn Код: 
  | 

variable[playerid]=variable[playerid]+1;
SetPVarInt(playerid,"variable",GetPVarInt(playerid, "variable")+1;);
| 
 
					Originally Posted by oggylt  
Код: 
SetPVarInt(playerid,"variable",GetPVarInt(playerid, "variable")+1;);  | 
#define IncreasePVarInt(%1, %2, %3) SetPVarInt(%1, %2, GetPVarInt(%1, %2)+%3);
| 
 
					Originally Posted by oggylt  
Код: 
SetPVarInt(playerid,"variable",GetPVarInt(playerid, "variable")+1;);  | 
SetPVarInt(playerid,"variable",GetPVarInt(playerid, "variable")+1);
| 
 
					Originally Posted by XGh0stz  
Quote: 
 Код: 
SetPVarInt(playerid,"variable",GetPVarInt(playerid, "variable")+1);  | 
new String[256];
if(strcmp(GetPVarString(playerid,"String1",256,String),GetPVarString((playerid,"String2",256,String),false,strlen(GetPVarString((playerid,"String1",256,String))))
ReturnPVarString(playerid, string)
{
teststring[256];
GetPVarString(playerid,string,teststring,sizeof(teststring))
return teststring;
}
| 
			 I know I can pass the PVarString into a temp string to use instead, but is it possible to point directly at the PVarString itself?  | 

	| 
 
					Originally Posted by [03 
Garsino ] 
Just finished converting my admin script to PVars ![]()  | 
| 
 
					Originally Posted by biltong  
Quote: 
 I made a stats system for one of my GMs with them, works great, the only issue with them is that they're about 8 times slower than normal variables as I read somewhere.  |