01.05.2011, 10:07
(
Last edited by RyDeR`; 07/08/2011 at 10:16 AM.
)
Execute PAWN Functions In-Game
Hi all, I saw this yesterday, and I found it a brilliant idea. So I though let me release it for people that want to use this also.
I was actually going to use my pawnCompiler plugin to make this but I made another plugin just to execute pawncc.exe better. There's one command called "/exec" with one parameter where you write the function (/exec [function]).
Video (video by Matthias_)
[ame]http://www.youtube.com/watch?v=0quboIjj2G4[/ame]
Download
Click here here to download complete script
Click here to download WinExec_Source
Notes (READ FIRST)
- Complete 'pawno' folder has to be in the root of your server files (the path where samp-server.exe is located).
- If WinExec is unable to execute pawncc please check which ERROR CODE it gives you (see definitions).
- If your code contains errors samp-server.exe will print the errors.
Credits go to Matthias_ for the idea and his video.
If it always executes the previous command (for slow computers)
This is due the slowness of your computer. The script compiles slower than it executes thus the previous .amx will execute and some miliseconds later the new .amx will be generated. You can simply solve this by increasing the timer interval:
Hi all, I saw this yesterday, and I found it a brilliant idea. So I though let me release it for people that want to use this also.
I was actually going to use my pawnCompiler plugin to make this but I made another plugin just to execute pawncc.exe better. There's one command called "/exec" with one parameter where you write the function (/exec [function]).
Video (video by Matthias_)
[ame]http://www.youtube.com/watch?v=0quboIjj2G4[/ame]
Download
Click here here to download complete script
Click here to download WinExec_Source
Notes (READ FIRST)
- Complete 'pawno' folder has to be in the root of your server files (the path where samp-server.exe is located).
- If WinExec is unable to execute pawncc please check which ERROR CODE it gives you (see definitions).
- If your code contains errors samp-server.exe will print the errors.
Credits go to Matthias_ for the idea and his video.
If it always executes the previous command (for slow computers)
This is due the slowness of your computer. The script compiles slower than it executes thus the previous .amx will execute and some miliseconds later the new .amx will be generated. You can simply solve this by increasing the timer interval:
Code:
SetTimer("ReloadFS", 50, 0); // Increase 50 to 70, if still same try 100