code's location
#1

when i create a comand with "new" where have to be the code then? in my script i mean
for example...this code
Код:
new
   a = 5;
if(a == 5)
   printf"the a in this code is really 5"
Reply
#2

if you want to make it global, the "new" allways come on top of your script.
Reply
#3

ok i allready tryed but why i get errors?
Reply
#4

printf("the a in this code is really 5");

function(parameters);
Reply
#5

you mean i forgot the "(" ")" brackets?
Reply
#6

Quote:
Originally Posted by Sfinx_17
you mean i forgot the "(" ")" brackets?
what he means is that in pawn, every "command" (these are referred to as a function) that you send to the server to do (ie printf, sendclientmessage, sethealth, etc) are in this format;
function(parameters);

for example:
print("diditfortehlulz");
will print out diditfortehlulz
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)