Raised This Month: $ Target: $400
 0% 

Hit a wall, read through funcs and stuff before post


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 12-31-2010 , 16:24   Re: Hit a wall, read through funcs and stuff before post
Reply With Quote #7

Quote:
Originally Posted by Len View Post
I did your suggestions and changed a few things like client_cmd which was just making endless loops :@
debug results:
test
team =
0 = 3
which tells me cs_get_user_team isn't returning anything at all, not what func wiki says,
It does return a value, but it is returning an integer value. You are using %s, which is used to format a string. To insert the value returned by cs_get_user_team() you'd use %i or %d.

A full list:
  • %s - string
  • %d - integer
  • %i - integer
  • %f - float
    • %.2f - float to the 2nd decimal place
    • %.3f - float to the 3rd decimal place
    • etc...

Quote:
Originally Posted by Len View Post
thank you so much wrecked
Not a problem.

Quote:
Originally Posted by Len View Post
so team[0] = jointeam, team[1] = team, team[2] = null?
By argument, I was referring to the 1st parameter of read_argv in the jointeam function, but it seems you've fixed that on your own. So in that case, just ignore what I said.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
 



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 02:12.


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