[SOLVED] read_data doesn't return value
I Hook Event:
PHP Code:
PHP Code:
Code:
0 | 0 | 0 |
Re: read_data doesn't return value
Works fine for me on my current 1.8.3 build
Code:
0 | 1 | 4DeathMsg Structure: 1 = byte KillerID 2 = byte VictimID 3 = byte IsHeadshot 4 = string TruncatedWeaponName |
Re: read_data doesn't return value
Fixed mistake, however output console too
|
Re: read_data doesn't return value
Is there a reason you aren't doing the RoundEndCondition checks in the PlayerDeath forward? Why the 0.1 task?
|
Re: read_data doesn't return value
HOW it's possible ....
Where is my mistake ?????? PHP Code:
Code:
24 | 3 |
Re: read_data doesn't return value
First of all, you need to learn how to use the edit button. It's there for a reason. Explain what you're trying to accomplish.
|
Re: read_data doesn't return value
Please read the output to the console
Code:
Debug #1 Client ID (iVictim) 24 | Attacker ID (iKiller) 3 |
Re: read_data doesn't return value
You are overwriting attacker with client:
num_to_str(attacker, szArgs, 1) num_to_str(client, szArgs, 2) You are telling it to write attacker into szArgs as a string and the max chars that can fit is 1. You are then telling it to write client into szArgs as a string and the max chars that can fit is 2. They are both getting written to szArgs so only the client string is there in the end. Also, you should not be storing this data as a string, use integers PHP Code:
|
Re: read_data doesn't return value
Guys help me Please, i don't know what is it ...
Why Client Index different's |
Re: read_data doesn't return value
I have this piece of code a long time not touched, but I think I've had problems there that did not end the round
|
| All times are GMT -4. The time now is 09:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.