Raised This Month: $51 Target: $400
 12% 

Learning SourcePawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
allenwr
Veteran Member
Join Date: Jan 2006
Location: The place where the karm
Old 01-04-2009 , 14:35   Learning SourcePawn
Reply With Quote #1

If someone could show me where my mistakes are, that would be lovely. I just need to learn the new way of doing things.
Attached Files
File Type: sp Get Plugin or Get Source (test.sp - 177 views - 291 Bytes)
__________________
Don't ever place an order with Vee Servers. This is why.
allenwr is offline
Send a message via ICQ to allenwr Send a message via Yahoo to allenwr
Lebson506th
Veteran Member
Join Date: Jul 2008
Old 01-04-2009 , 15:29   Re: Learning SourcePawn
Reply With Quote #2

  • Don't need "#include <halflife>"
  • There needs to be a comma at the end of each line in the Plugin:myinfo block
  • Print function header needs to be like this to be used for a command:

PHP Code:
public Action:print(clientargs
and it needs to return Plugin_Handled or Plugin_Continue or Plugin_Changed at the end.

Like such
Attached Files
File Type: sp Get Plugin or Get Source (test.sp - 588 views - 318 Bytes)
__________________
My Plugins
Spray Tracer by Nican, maintained by me
Simple TK Manager
DoD:S Admin Weapons

Links
Resistance and Liberation (A HL2 Multiplayer Modification)
Lebson506th is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode