Problem with passing an array by set_task
Hello,
I've got a problem with passing a Steam-ID from one function to another one by set_task. Here's my code: Code:
public check_manual(id, level, cid)STEAM_0:0:1234 But in connect_web at Point2, it's reduced to: S_M If I replace 4 in set_task by 80, I get: S_MAM_0:0:1234 Why do I get S_MAM.. instead of STEAM and why do I have to increase array size in set_task? Thanks for your help, Scooter |
Re: Problem with passing an array by set_task
http://forums.alliedmods.net/showpos...5&postcount=11
Yeah, increase it so it can contain all your data in a long string. Does player_id contain the full steamid? |
Re: Problem with passing an array by set_task
Thank you for the link. After putting everything in one array, it works fine.
That's my new code: Code:
new header_connect[80] |
Re: Problem with passing an array by set_task
Quote:
PHP Code:
|
Re: Problem with passing an array by set_task
I finally had time to test your version, it also works great and is easier to handle. Thanks.
|
Re: Problem with passing an array by set_task
this is useful thank you guys !!!!
:twisted: i had to say it ! |
| All times are GMT -4. The time now is 04:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.