Raised This Month: $ Target: $400
 0% 

Is there a difference?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 08-03-2010 , 18:27   Re: Is there a difference?
Reply With Quote #1

continue is used in loops, it means start the next iteration of the closest loop.
Example:
Code:
for (new i = 0; i < 10; ++i) {     for (new j = 0; j < 10; ++j) {         if (j == i) continue;         server_print("j != i"); // this code won't be executed when j == i     } }
return PLUGIN_CONTINUE means you're returning the value of PLUGIN_CONTINUE, which is defined on amxmodx.inc
The function provider will check your return value and act based on it. For instance, in most cases if you return PLUGIN_HANDLED it will block the default action.
Seta00 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 00:09.


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