[Include] Extra Functions [Last Update: 10.04.2009 15:07 (GMT-1)]
#10

Quote:
Originally Posted by Weirdosport
I changed the list of things... some of them are questions. I am still concerned by the use of strings of size [256]. This size is unnecessary for several reasons, many of which are listed in this post HERE.
strcat vs string_insert
Theres no difference. Just like string_length.
It's useful for a first time scripter, so he/she doesn't have to look for those weird names like strcat. I didn't even know string_insert was already covered by strcat. Never used it before in C; C++ or Pawn.

I'm updating the «string» sizes.
I didn't knew max input was 128. Ill post an update soon

Quote:

Second Thing: I don't know if it's a big deal, but in vehicle_fix and vehicle_kill you use integers instead of Floats. If this were compiled it would complain but as it's an include you'd never know!

In all programming languages: 1000 = 1000.0 = 1000.0000 = 1000.0000000
If you call that function somewhere in one of your gamemodes, it will not give you any kind of warning or error.

Quote:

Seventh Thing: Just for the record, what is this for?:

No idea, it just returns a new «string». I'm going to remove that in the next version

Quote:

Fourth Thing: In "player_giveHealthBoost" is the percentage a number between 0 and 1?

There is a comment next to the function, which you can see in Pawno IDE, telling you that is a percentage (0.25 = 25%)

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)