Starting learning pawn
Hello all!,
I'm a new guy in here and in "pawn" scripting, so after ~1h. checking other plugins source code i desided to do my first motd plugin, i did not tested it, so i think you can help me to learn pawn faster by telling me what i'm doing wrong, and how to do that. Thank you! P.S. Sorry for my bad English :oops: EDIT: I forgot to add source code :O Code:
#include <amxmodx.inc> |
Re: Starting learning pawn
Show your code.
|
Re: Starting learning pawn
Quote:
|
Re: Starting learning pawn
PHP Code:
|
Re: Starting learning pawn
Remove ".inc" in your #include.
Add the native show_motd( ) in the function public say_motd (add a "_") like : Code:
EDIT : Indent your code |
Re: Starting learning pawn
Wow, thanx for advice!
Now my code looks much better :) PHP Code:
|
Re: Starting learning pawn
Quote:
It must be register_clcmd("/motd", "say_motd") |
Re: Starting learning pawn
Code:
|
Re: Starting learning pawn
Ok, thanx again for both :)
Now this motd is working, but can you tell me where i can learn pawn syntax and all functions? |
Re: Starting learning pawn
|
| All times are GMT -4. The time now is 14:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.