What is the FUnction NEW?
#1

What is NEW?

NEW MAX-PLAYERS

What is this Means? what is NEW?

What is Forward?

what they do? I thing they are Functions? and If they are Functions what is this Functions Do?
Reply
#2

its all in the wiki
https://sampwiki.blast.hk/wiki/Scripting_Basics
read there, it makes no sense for us to post whats already been written

Learn PAWN Language and youll know what all these are
Reply
#3

Quote:
Originally Posted by Jonny5
Посмотреть сообщение
its all in the wiki
https://sampwiki.blast.hk/wiki/Scripting_Basics
read there, it makes no sense for us to post whats already been written

Learn PAWN Language and youll know what all these are
I'm guessing you obviously don't know it either. Why don't you just tell him?

It defines a new function so I guess you wouldn't really call it a function. It declares or recognizes new functions therefore when you're compiling, it won't come up with a bunch of errors saying it's not a recognized function or whatnot.
Reply
#4

why should i explain what HE CAN READ in the wiki

and new does not define a new function
it defines a new variable...

public does not define a new function
it defines a function as public so that it can be used in ANY script.
you must also forward a public so the compiler knows to allow other scripts to use
callremotefunction on it.

dont guess to what i know, the fact is this is a scripting discussion not a PAWN teaching forum.
Learn pawn, write a script have an error post it here for help.. simple..

regards,
Reply
#5

Lookes like a

To me.
Reply
#6

Quote:
Originally Posted by Jonny5
Посмотреть сообщение
why should i explain what HE CAN READ in the wiki

and new does not define a new function
it defines a new variable...

public does not define a new function
it defines a function as public so that it can be used in ANY script.
you must also forward a public so the compiler knows to allow other scripts to use
callremotefunction on it.

dont guess to what i know, the fact is this is a scripting discussion not a PAWN teaching forum.
Learn pawn, write a script have an error post it here for help.. simple..

regards,
Learn PAWN? Are you kidding me? I'm a certified programmer from Cal Tech specializing in C++. PAWN originated from C++ so I think I know what I'm doing.
Reply
#7

lol well i dont think so cause yet your WRONG again
PAWN comes from C not c++

and you clearly took what i said wrong
i said learn pawn , write a script post in this forum for help
i dident mean YOU

and here you are babling off wrong info
this is why its important they learn from the wiki!!!
Bercause someone like you comes along and THINKS he knows what hes talking about
but yet is feeding the wrong info and yet leading a new scripting in the wrong direction.

just cause you know c++ dont mean you know PAWN,
c++ is an oop language im sure you know
pawn is NOT!
pawn is typeless!
pawn has no garbage collect!

ect.. ect

if you want to start a teaching class for pawn thats great but dont do it in this section
this is for people to get help with there code, not to learn how to code!
Reply
#8

Also knowing c/c++ doesn't mean you know PAWN no matter how qualified in c++ you are. c++ is a completely different monster. IMO harder to learn than PAWN yes, but still completely different.
Reply
#9

Quote:
Originally Posted by Jonny5
Посмотреть сообщение
lol well i dont think so cause yet your WRONG again
PAWN comes from C not c++

and you clearly took what i said wrong
i said learn pawn , write a script post in this forum for help
i dident mean YOU

and here you are babling off wrong info
this is why its important they learn from the wiki!!!
Bercause someone like you comes along and THINKS he knows what hes talking about
but yet is feeding the wrong info and yet leading a new scripting in the wrong direction.

just cause you know c++ dont mean you know PAWN,
c++ is an oop language im sure you know
pawn is NOT!
pawn is typeless!
pawn has no garbage collect!

ect.. ect

if you want to start a teaching class for pawn thats great but dont do it in this section
this is for people to get help with there code, not to learn how to code!
LOL! You act like a kid (maybe you are). C++, C, and C# are all part of the "C" group which means all the parameters, functions, strings are close to being the same.
Reply
#10

lol a kid?
what gives you that idea..
Dont think you can insult me just because I called you out
Fact is im not certified in anything, i bet that piss's you off
But im not a kid either, Im 30 if you must know!

and while they may all be close
close and the same are much different in this case,

if you would actually learn pawn instead of assuming you know it cause you know c++
then youll see the MAJOR differences,

i mean you told this guy a new defines a new function
and it clearly dont
so NO you dont know pawn.

im done with this topic hopefully you learned something today

regards,
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)