Sscanfiy this - Code Help
#3

Quote:
Originally Posted by Dwane
Посмотреть сообщение
Lines don't matter! What would you prefer, something that is done faster but has few more lines or the opposite?!

By the way, you can reduce the lines by using cache_get_row_(int/float).

pawn Код:
// An example:
playerVariables[playerid][pInternalID] = cache_get_row_int(0, 0);
// Instead of:
cache_get_row(0, 0, szQueryOutput); // pInternalID
playerVariables[playerid][pInternalID] = strval(szQueryOutput);
Those functions aren't in R7. You can however refer to this to get cache_get_row_int:

http://forum.sa-mp.com/showpost.php?...&postcount=935
Reply


Messages In This Thread
Sscanfiy this - Code Help - by liam1412 - 02.04.2013, 13:00
Re: Sscanfiy this - Code Help - by Konstantinos - 02.04.2013, 13:04
Re: Sscanfiy this - Code Help - by SuperViper - 02.04.2013, 14:09
Re: Sscanfiy this - Code Help - by Konstantinos - 02.04.2013, 14:13
Re: Sscanfiy this - Code Help - by SuperViper - 02.04.2013, 14:17
Re: Sscanfiy this - Code Help - by Konstantinos - 02.04.2013, 14:22
Re: Sscanfiy this - Code Help - by liam1412 - 02.04.2013, 17:33
Re: Sscanfiy this - Code Help - by MP2 - 02.04.2013, 19:13
Re: Sscanfiy this - Code Help - by Vince - 02.04.2013, 19:28

Forum Jump:


Users browsing this thread: 4 Guest(s)