Need help for complied errors
Hello everyone!
Sorry for my bad English first. And I've never written any plugin or program before. I can only use C to print a Xmas tree in console. :oops: But I want to give myself a big challenge, so I try to write a simple plugin by myself. Here is my idea of this plugin: I just want to restrict everyone's movement until warmup is end in CS:GO. Here is my source code: PHP Code:
And I got these errors: Code:
//// WarmupWaiting.sp |
Re: Need help for complied errors
Code:
error 035: argument type mismatch (argument 1) PHP Code:
|
Re: Need help for complied errors
PHP Code:
I suggesting looking at the timer documentation: https://wiki.alliedmods.net/Timers_(...Mod_Scripting) |
Re: Need help for complied errors
PHP Code:
I just help fix code that some methods on using , I never wrote plugin for csgo ,just for l4d2 and with my now knowledge. so hope my fix can work or give you little help. Sorry for my poor English. |
Re: Need help for complied errors
Quote:
Thanks for all replys, and thanks for XiLuo's rewrote version as well. It compiled successfully, but plugin failed to work I found errors from log file Code:
L 03/03/2019 - 20:16:54: [SM] Exception reported: Game event "warmup_waiting" does not exist So I decided to rewrite again. PHP Code:
But Players still can move or go around when warmup. I don't know why, guess I misunderstand SetEntityMoveType() function again? By the way, I found this function from here https://forums.alliedmods.net/showthread.php?t=273053 |
Re: Need help for complied errors
I did not test it, but it should work.
I changed your logic actually, I'm sorry if it is a bit difficult for you. Also I prefer new syntax, it is more familiar to me, because it is closer to 'C' syntax :) Feel free to ask questions PHP Code:
|
Re: Need help for complied errors
1 Attachment(s)
Compile it here!
Untested |
Re: Need help for complied errors
PHP Code:
|
Re: Need help for complied errors
Quote:
I really appreciate it, it's working perfectly. But I still don't understand why I get errors if using my compiler. :shock: impossible_cc's version can be compiled in this website, but plugin still failed to work without any errors. But thank you guys. I've learned a lot from these threads. :) |
Re: Need help for complied errors
Quote:
|
All times are GMT -4. The time now is 05:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.