Forum
Search
Members
Help
Hello There, Guest!
Login
Username:
Password:
Lost Password?
Remember me
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Threaded Mode
SetPVarInt
Cerealguy
Huge Clucker
Posts: 292
Threads: 70
Joined: Mar 2013
Reputation:
0
#1
21.01.2015, 02:58
It is a rather stupid question, it is necessary to establish at 0 SetPVarInt in OnPlayerConnect?
Find
Reply
vassilis
High-roller
Posts: 1,679
Threads: 232
Joined: Nov 2009
Reputation:
0
#2
21.01.2015, 03:25
it is more to avoid future bugs but no its not necessary as far as i know.
Find
Reply
Cerealguy
Huge Clucker
Posts: 292
Threads: 70
Joined: Mar 2013
Reputation:
0
#3
21.01.2015, 03:27
Quote:
Originally Posted by
vassilis
it is more to avoid future bugs but no its not necessary as far as i know.
thought so, thanks for the reply friend
Find
Reply
Eyce
Big Clucker
Posts: 154
Threads: 22
Joined: Sep 2013
Reputation:
0
#4
21.01.2015, 04:13
No it's not. It's automatically set to 0 when a player connects. I would suggest that you set it if you're going to use it for player IDs. Such as:
pawn Код:
public
OnPlayerConnect
(
playerid
)
{
SetPVarInt
(
playerid,
"Killer"
, INVALID_PLAYER_ID
)
;
return
1
;
}
Find
Reply
«
Next Oldest
|
Next Newest
»
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
SA-MP
-- News and Updates
-- General
-- Client Support
-- Bug Reports
-- Screenshots and Videos
SA-MP Server
-- Server Support
-- Server Advertisements
SA-MP Scripting and Plugins
-- Scripting Help
---- Tutorials
---- Discussion
---- Help Archive
-- Gamemode Scripts
-- Filterscripts
---- Includes
---- Tools and Files
---- Maps
-- Plugin Development
SA-MP DL Edition
-- SA-MP 0.3.DL
---- Model Releases
Other
-- Everything and Nothing
Non-English
-- Languages
---- Nederlands/Dutch
------ Scripting Showroom en Discussie
------ Off topic
---- Español/Spanish
------ Lanzamientos/Releases
---- Français/French
------ Showroom
---- Русский/Russian
------ Релизы/Releases
---- Português/Portuguese
------ Lançamentos/Releases
---- Română/Romanian
------ Salonul Scripturilor
---- Archive
Users browsing this thread: 5 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help