Recommendations where to start learning SP??
Hey, I know C and Java programming languages and I would like to start learning Sourcepawn.
I'm willing to pay money for some good guides or even a teacher (If one of you guys want to help me out please comment). Any ideas? It seems confusing to start learning this from youtube (i cannot find a good guide for this). |
Re: Recommendations where to start learning SP??
|
Re: Recommendations where to start learning SP??
Quote:
https://forums.alliedmods.net/showthread.php?t=94381 |
Re: Recommendations where to start learning SP??
Quote:
Just wrote out this code, will this work? compiler show no warnings, I just want this command to make some server commands. #define DEBUG #define PLUGIN_AUTHOR "" #define PLUGIN_VERSION "0.00" #include <sourcemod> #include <sdktools> #include <cstrike> #include <sdkhooks> public Plugin myinfo = { name = "", author = PLUGIN_AUTHOR, description = "", version = PLUGIN_VERSION, url = "" }; public void OnPluginStart() { RegConsoleCmd("sm_abc",abc); } public Action:abc(server,args) { ServerCommand("mp_teamlimits 0"); } |
Re: Recommendations where to start learning SP??
Quote:
|
Re: Recommendations where to start learning SP??
Quote:
what the new syntax is? |
Re: Recommendations where to start learning SP??
also dont use unnecessary includes.
and on the RegConsoleCmd callback function parameter is client. just notice. Quote:
|
Re: Recommendations where to start learning SP??
Quote:
Can you please fix my code? i mean with the new syntax and remove the unnecessary includes and the client parameter? i am sorry if this is rude for me to ask. just trying to learn from the pros. |
Re: Recommendations where to start learning SP??
PHP Code:
|
Re: Recommendations where to start learning SP??
Quote:
i have a few questions, Sorry again for bothering you. first, cilent will always will be an integer parameter? same with args. the debug message is just printing for the client "debug" to chat right? the return plugin_handled is like a must return? i mean at the end of every plugin you must put it? |
All times are GMT -4. The time now is 04:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.