What does Theses "Loops" Means?
#2

The first one resets a player's data to 0. However, a (probably) more efficient way of doing that is:

PHP код:
static const emptyInfo[USER_DATA];
User[playerid] = emptyInfo
The second one escapes ' characters in a string for usage in SQL statements. It does this by checking each character separately and copying it to the output. Obsolete as of 0.3.7 R2 where the new format specifier %q fulfills this functionality.
Reply


Messages In This Thread
What does Theses "Loops" Means? - by TheRaGeLord - 19.07.2015, 14:20
Re: What does Theses "Loops" Means? - by Vince - 19.07.2015, 14:38

Forum Jump:


Users browsing this thread: 1 Guest(s)