Raised This Month: $ Target: $400
 0% 

Showing results 1 to 8 of 8
Search took 0.00 seconds.
Search: Posts Made By: OrangePeel
Forum: Scripting Help 09-29-2020, 13:07
Replies: 2
Views: 385
Posted By OrangePeel
Re: SemiClip NPC ?

https://forums.alliedmods.net/showthread.php?t=261852
Forum: Module Coding 09-27-2020, 09:39
Replies: 0
Views: 955
Posted By OrangePeel
how to use MF_CopyAmxMemory?

i want to make a native like this

native get_move_path(Float:origin1[3], Float:origin2[3], Float:originArray[][3], &size)

public test(id, target)
{
new Float:origin1[3], Float:origin2[3],...
Forum: Scripting Help 09-25-2020, 01:55
Replies: 8
Views: 1,147
Posted By OrangePeel
Re: Is there file current position has limitation

I tried, it looks like when file cursor big enough then goes wrong. So I calculated cursor position in a global variable and check after every fread if “ftell” doesn’t equals this variable, then...
Forum: Scripting Help 09-24-2020, 12:29
Replies: 8
Views: 1,147
Posted By OrangePeel
Re: Is there file current position has limitation

Sry for my bad english, can u tell me how to fix it? I convert it into C program and it works perfect.
Forum: Scripting Help 09-24-2020, 11:03
Replies: 8
Views: 1,147
Posted By OrangePeel
Re: Is there file current position has limitation

Yes. But I just covert from valve(nav_file.cpp), you can see some original code in my post. It just read the binary file, nothing more.
Forum: Scripting Help 09-24-2020, 05:58
Replies: 8
Views: 1,147
Posted By OrangePeel
Re: Is there file current position has limitation

idk the reason why Cur: '1073' suddenly go to Cur: '4096', although the last one is fread(iFile, spotCount, BLOCK_CHAR); and the sportCount value is 4
Forum: Scripting Help 09-24-2020, 04:53
Replies: 8
Views: 1,147
Posted By OrangePeel
Re: Is there file current position has limitation

When log 'Cur' > 4096 then data go wrong
L 09/24/2020 - 15:30:36: -------- Mapchange to 007 --------
L 09/24/2020 - 15:30:37: [nav_reader.amxx] NavReader magic: '-17958194'
L 09/24/2020 -...
Forum: Scripting Help 09-24-2020, 04:51
Replies: 8
Views: 1,147
Posted By OrangePeel
Is there file current position has limitation

i make a plugin read .nav file, but when file current position >= 4096 then read wrong data (i guess)


#include <amxmodx>

#define CONSOLE_ECHO(%0) log_amx(%0)

// ie: "no place"
#define...
Showing results 1 to 8 of 8

 
Forum Jump

All times are GMT -4. The time now is 11:38.


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