Raised This Month: $ Target: $400
 0% 

Argument helps


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 03-12-2009 , 17:12   Argument helps
Reply With Quote #1

Well it this posible?

PHP Code:
public banana(id, const pepe[], Float:othernewstring[], len)

It posible to know example if pepe is string or float. It const or not.

Thanks. Sorry my bad description.
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-12-2009 , 20:38   Re: Argument helps
Reply With Quote #2

Why did you need to know that ?
Arkshine is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 03-13-2009 , 11:46   Re: Argument helps
Reply With Quote #3

Example I want to do somelike this:

kz_set_pev(value, :.....)
kz_get_pev(value, :.....)

So I need to now if 3 param is float, string or int.
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
Old 03-13-2009, 12:09
[ --<-@ ] Black Rose
This message has been deleted by [ --<-@ ] Black Rose.
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 03-13-2009 , 12:24   Re: Argument helps
Reply With Quote #4

Why?
What would you use it for? ( Don't give me an example. Show EXACTLY what you would use it for.)
[ --<-@ ] Black Rose is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-13-2009 , 12:33   Re: Argument helps
Reply With Quote #5

You can know what the pev_ type is by checking its number.

If it's between pev_string_start and pev_string_end it's a string, etc...

Anyway, pev and set_pev are just fine...
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 03-13-2009 , 12:36   Re: Argument helps
Reply With Quote #6

My idea was like this but I solved

PHP Code:
enum
{
 
kz_start 0,
 
kz_reset,
 
kz_start,
 
kz_teleport,
 
kz_team,
 
kz_flags,
 
 [...]
}
stock kz_set_pev(value, :....)
{
 new use = 
getarg(2)
 switch(use)
 {
  
//
 
}

I do all in native. xD
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 03-13-2009 , 12:45   Re: Argument helps
Reply With Quote #7

Quote:
Originally Posted by AntiBots View Post
My idea was like this but I solved

PHP Code:
enum
{
 
kz_start 0,
 
kz_reset,
 
kz_start,
 
kz_teleport,
 
kz_team,
 
kz_flags,
 
 [...]
}
stock kz_set_pev(value, :....)
{
 new use = 
getarg(2)
 switch(use)
 {
  
//
 
}

I do all in native. xD
Retard, that IS an example. ...
[ --<-@ ] Black Rose 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 08:58.


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