Raised This Month: $ Target: $400
 0% 

Pawn function argmunent help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 05-22-2014 , 16:12   Re: Pawn function argmunent help
Reply With Quote #2

Code:
#include <amxmodx> public plugin_init() {     register_plugin("Test Plugin 8", "", "[ --{-@ ]");         new array[1][1];     test(array);     test(array, 2); } stock test(array2d[][], optionalvalue=0) {     server_print("%d", array2d[0][0]);     server_print("Optional: %d", optionalvalue); }
#1 & #2 shown in the example.
Not really sure what you mean by #3 but there are 3 types of data. Float, boolean and integers. Everything else is one of the previous with a custom tag to prevent misuse. In other words, you can pass anything.
__________________

Last edited by Black Rose; 05-22-2014 at 16:15.
Black Rose is offline
 



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 09:45.


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