This site is a testing version, but all data is shared with the live forum.


Raised This Month: $12 Target: $400
 3% 

SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 02-03-2011 , 00:36   Re: SMLIB 0.9.6 BETA (289 Function Stocks) | updated 03.02.2011
Reply With Quote #1

Berni, you might want to take a look at this stock in clients.inc:

Code:
/**
 * Gets the name of the last place (if set by the game)
 *
 * @param entity			Entity index.
 * @param buffer			String buffer
 * @param size				Size of the String buffer
 * @noreturn
 */
stock Client_GetLastPlaceName(client, String:buffer[], size)
{
	SetEntPropString(client, Prop_Send, "m_szLastPlaceName", buffer);
}
FeuerSturm is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 02-03-2011 , 00:50   Re: SMLIB 0.9.6 BETA (289 Function Stocks) | updated 03.02.2011
Reply With Quote #2

ok "S" should be "G" commited to svn.
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 02-03-2011 , 00:53   Re: SMLIB 0.9.6 BETA (289 Function Stocks) | updated 03.02.2011
Reply With Quote #3

and you might want to return the result
FeuerSturm is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 02-03-2011 , 00:54   Re: SMLIB 0.9.6 BETA (289 Function Stocks) | updated 03.02.2011
Reply With Quote #4

Please download from the svn repo, thanks
can't make a new release for every little change.
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
Monkeys
Veteran Member
Join Date: Jan 2010
Old 02-09-2011 , 04:29   Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Reply With Quote #5

Why is Client_SetMaxSpeed part of entities.inc?
__________________
Get a lid on that zombie,
he's never gonna be alri-i-ight.
Oooh get a lid on that zombie,
or he's gonna feed all night.
Monkeys is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 02-09-2011 , 07:38   Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Reply With Quote #6

Quote:
Originally Posted by Monkeys View Post
Why is Client_SetMaxSpeed part of entities.inc?
Because we felt like it
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
Benjamin1995
SourceMod Donor
Join Date: May 2009
Location: Germany
Old 02-09-2011 , 16:39   Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Reply With Quote #7

I think that I found a new bug.

Code:
/**
 * Gets the Target name of an other entity
 *
 * @param entity			Entity index.
 * @param buffer			Return/Output buffer.
 * @param size				Max size of buffer.
 * @noreturn
 */
stock GetEntityTargetName(entity, String:buffer[], size)
{
	GetEntPropString(entity, Prop_Data, "m_target", buffer, size);
}

it should be m_iName

Regards Benni.
__________________
Benjamin1995 is offline
Send a message via Skype™ to Benjamin1995
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 02-09-2011 , 17:05   Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Reply With Quote #8

The function GetEntityTargetName doesn't even exist in smlib.

+ You are looking for Entity_GetName().
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
Monkeys
Veteran Member
Join Date: Jan 2010
Old 02-10-2011 , 15:49   Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Reply With Quote #9

Quote:
Originally Posted by berni View Post
Because we felt like it
It's annoying!
Here I was looking for it, in clients.inc!
__________________
Get a lid on that zombie,
he's never gonna be alri-i-ight.
Oooh get a lid on that zombie,
or he's gonna feed all night.
Monkeys is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 02-10-2011 , 18:01   Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Reply With Quote #10

It's already fixed ;)

We added Entity_SetMaxSpeed also now.
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni 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 02:28.


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