Does anyone else do this when scripting?
#1

I always write, for example

TogglePlayerControllabe();

then move my cursor back to between the brackets and type the parameters.

Is this just me?? It's actually a great habit and saves me lots of time, and it saves confusion if you have nested brackets:

pawn Код:
if(SetVehiclePos(GetPlayerVehicleID(GetSomeRandomPlayer(GetMaxPlayers()))))
Reply
#2

lol i do that on small bits but if i try with large amounts of code i wind up getting confused
Reply
#3

I just write it all out...although there's nothing wrong with the way you do it. I find that it's faster if I type it out because I don't have to fiddle with my mouse, and it also makes me concentrate on what I'm doing more. Like new121 said, when you start getting lots of nested parenthesis, it can get confusing.
Reply
#4

I do the same thing lol. I don't use my mouse though, I mainly navigate using the arrow keys. Reaching for the mouse slows me down.
Reply
#5

people use different methods and use it the most on which they think it's faster. it's also when they're used to it.

as for me, i haven't noticed how i type but i get them done in a short period of time.
Reply
#6

I do it with everything aside from {}'s

pawn Код:
MyThing()
{
    //i do this instead to get the template...
}
I do it that way because I think it's less confusing than

pawn Код:
MyThing(){
    //this stuff
}
Reply
#7

Well yeah I do that too, I type

pawn Код:
stock somefunc(someargs)
{
}
then shove the code in after.

@Alternative112 Just press the left arrow key twice and you go from );x to x);

And yeah, nested parenthesis are a pain.

pawn Код:
new maxplayers = GetMaxPlayers();
new randplayer = GetRandomPlayer(maxplayers);
new vehicleid = GetPlayerVehicleID(randplayer);
if(SetVehiclePos(vehicleid))
Reply
#8

I dont do it on functions, but i sometimes forget to define the sscanf uds's etc. Dont know what to say them.
Reply
#9

I tend to click on the panel to the right in pawno and type the first few chars, then double click the function I want and type all the code in after.
Reply
#10

Meh, I hide the function list, I would never use it, I know all the functions/callbacks now. I wouldn't be able to live without the parameter tooltip thing though where when you type "function(" and wait it shows the expected parameters if it's a native function.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)