You must be logged in to post Login Register


Lost Your Password?

Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

v3_get_rank() problem

UserPost

9:09 pm
August 31, 2011


Polonaise

Texas

Member

posts 6

Post edited 9:09 pm – August 31, 2011 by Polonaise


Yo, I'm having kind of a small problem with v3_get_rank(). I'm trying to implement a rank-based "lock" in jukebox, and everything I did to it wroked perfectly, except when it comes to ranks, I always end up with a segmentation fault.

This is a test code that causes that error:

user = v3_get_user(ev->user.id);

rank = v3_get_rank(user->id);

if(strcmp(rank->name, "over 9000") == 0) {
     printf("success.\n");
}
v3_free_user(user);
v3_free_rank(rank);

 

12:49 am
September 5, 2011


econnell

Admin

posts 320

Just as a guess…. is v3_get_rank() returning null?

2:28 am
October 14, 2011


Polonaise

Texas

Member

posts 6

Indeed it was, fixed it a while back but forgot to update, sorry.


About the Mangler forum

Forum Timezone: America/New_York

Most Users Ever Online: 30

Currently Online:
5 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 1
Forums: 4
Topics: 247
Posts: 1128

Membership:

There are 746 Members

There is 1 Admin
There are 2 Moderators

Top Posters:

clearscreen – 48
dardack – 18
Krovikan – 16
FWishbringer – 14
faldiin – 12
vpro – 11

Recent New Members: keeper, pezz, nvs2dvs, fishtoast, melody, Etane

Administrators: econnell (320 Posts)

Moderators: Haxar (58 Posts), bobshaffer (2 Posts)



Go to Top