Raised This Month: $ Target: $400
 0% 

Visuals


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 10-11-2007 , 04:33   Re: Visuals
Reply With Quote #8

PHP Code:
public kasnors(id) {
new 
view[33]
new 
msg[51]
//codes...
//and etc....

Well those two arrays ( view and msg ) actually only exist while the code is inside the function "kasnors", and they aren't constant.

What was it exactly you didn't get? Variables in general or what?

If it's PAWN in general you don't get, then there are some tutorials about.

return PLUGIN_HANDLED means that after your function has run, the game knows you did something.

return PLUGIN_CONTINUE tells the game to pretend your function never ran.

see the following:

PHP Code:
plugin_init()
{
    
register_clcmd("command","on_command")
}
public 
on_command(id)
{
    return 
PLUGIN_HANDLED ;

when a user puts "command" in their console, nothing will happen.
(the code does nothing except tell the game that you "did" the command)

If we change the PLUGIN_HANDLED to PLUGIN_CONTINUE, the console would say "unrecognised command: command" or whatever, because you told the game that you didn't handle it.
purple_pixie 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 16:13.


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