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.