Error With pfn_touch
Can anybody tell me what is wrong with this code. I keep getting the errors at the bottom. The plugin is doing what it is suppose to but for some reason I get these errors which from time to time seem to make server CRASH.
PHP Code:
PHP Code:
|
Re: Error With pfn_touch
ptd can be other entities than players.
You would have better to use register_touch("xmas_present", "player", "XMasPresent_Touch") public XMasPresent_Touch(present, player) |
Re: Error With pfn_touch
Hmm thanks. The way you told me fixed that error. But now I get this errors for this other part of the code.
Code:
[AMXX] Displaying debug trace (plugin "presents.amxx")Line 141 is: CreateEnt(origins[a]) PHP Code:
Line 223 is: CreateEnt(origins[a]) I am pretty sure that it has something to do with the cmd_Spawn because it gives me this error when I compile it: NewPlugin.sma(195) : warning 213: tag mismatch Line 195 is: set_task(2.5, "CreateEnt", 0, curOrigin, 3) I tried fixing it by putting: set_task(2.5, "CreateEnt") instead but although it compiles with no errors. It still gives me the errors in the Log. |
| All times are GMT -4. The time now is 05:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.