AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Argument helps (https://forums.alliedmods.net/showthread.php?t=87488)

AntiBots 03-12-2009 17:12

Argument helps
 
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.

Arkshine 03-12-2009 20:38

Re: Argument helps
 
Why did you need to know that ?

AntiBots 03-13-2009 11:46

Re: Argument helps
 
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.

[ --<-@ ] Black Rose 03-13-2009 12:24

Re: Argument helps
 
Why?
What would you use it for? ( Don't give me an example. Show EXACTLY what you would use it for.)

ConnorMcLeod 03-13-2009 12:33

Re: Argument helps
 
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...

AntiBots 03-13-2009 12:36

Re: Argument helps
 
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

[ --<-@ ] Black Rose 03-13-2009 12:45

Re: Argument helps
 
Quote:

Originally Posted by AntiBots (Post 779759)
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. ...


All times are GMT -4. The time now is 08:58.

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