Raised This Month: $ Target: $400
 0% 

[nVault] Invalid vault id: 0


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NiQu
Veteran Member
Join Date: Nov 2009
Old 05-15-2010 , 21:02   Re: [nVault] Invalid vault id: 0
Reply With Quote #1

g_iAuthID is a global var:
PHP Code:
new g_iAuthID[32]; 
I have this in client_authorized:

PHP Code:
get_user_authid(iPlayerg_iAuthIDsizeof(g_iAuthID) - 1); 
__________________
My Projects
  • RoTAPI V0.0.1 ------- Private
    • Progress - [||||||||||]
  • CashMod V0.0.6 ----- Public
    • Progress - [||||||||||]
  • CashMod V0.0.7 ----- Public
    • Progress - [||||||||||]
NiQu is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-15-2010 , 21:09   Re: [nVault] Invalid vault id: 0
Reply With Quote #2

Code:
new g_iAuthID[33][32] public client_authorized( iPlayer ) {     get_user_authid( iPlayer, g_iAuthID[iPlayer], charsmax( g_iAuthID[] ) }

Now you use g_iAuthID[playerindex] instead of just g_iAuthID.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT

Last edited by wrecked_; 05-15-2010 at 22:20.
wrecked_ is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-15-2010 , 21:20   Re: [nVault] Invalid vault id: 0
Reply With Quote #3

charsmax( g_iAuthID[] )
__________________
Bugsy is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-15-2010 , 21:43   Re: [nVault] Invalid vault id: 0
Reply With Quote #4

Quote:
Originally Posted by wrecked_ View Post
Code:
new g_iAuthID[33][32] public client_authorized( id ) {     get_user_authid( iPlayer, g_iAuthID[iPlayer], charsmax( g_iAuthID[iPlayer] ) }

Now you use g_iAuthID[playerindex] instead of just g_iAuthID.
iPlayer?
__________________
fysiks is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-15-2010 , 21:48   Re: [nVault] Invalid vault id: 0
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
iPlayer?
Heh, woops. I put in id then realized he had iPlayer when I finished the example.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-15-2010 , 22:15   Re: [nVault] Invalid vault id: 0
Reply With Quote #6

Fix your charsmax too so nobody gets confused
__________________
Bugsy is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-15-2010 , 22:20   Re: [nVault] Invalid vault id: 0
Reply With Quote #7

Quote:
Originally Posted by Bugsy View Post
Fix your charsmax too so nobody gets confused
Sorry, didn't see your post. Done.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
NiQu
Veteran Member
Join Date: Nov 2009
Old 05-16-2010 , 01:05   Re: [nVault] Invalid vault id: 0
Reply With Quote #8

Thanks to everyone..

Thanks Bugsy for fixing this..
__________________
My Projects
  • RoTAPI V0.0.1 ------- Private
    • Progress - [||||||||||]
  • CashMod V0.0.6 ----- Public
    • Progress - [||||||||||]
  • CashMod V0.0.7 ----- Public
    • Progress - [||||||||||]
NiQu is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:35.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode