AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   cs_set_user_deaths problem (https://forums.alliedmods.net/showthread.php?t=83919)

cyb0rg 01-17-2009 14:58

cs_set_user_deaths problem
 
This my code:
PHP Code:

format_time(Timex32"%M"time);
format_time(Timey32"%S"time);

set_pev(idpev_fragsTimey);
cs_set_user_deaths(idTimex); 

Error in cs_set_user_deaths():
error 035: argument type mismatch (argument 2)

Timex returns digits-string, like "14", what is wrong in code?
If i try to cs_set_user_deaths(id, "10"); it is too not working.
please help :)

sorry for bad english.

Exolent[jNr] 01-17-2009 15:00

Re: cs_set_user_deaths problem
 
cs_set_user_deaths() uses an integer
pev_frags uses a float

Code:
set_pev(id, pev_frags, str_to_float(Timey)); cs_set_user_deaths(id, str_to_num(Timex));


All times are GMT -4. The time now is 01:43.

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