[Include] formatex - Improved "format" function!
#36

The %q specifier returns null when using this include:

PHP код:
#include <a_samp>
main() {
    
printf("Straight: '%q'""AndySedeyn");

Prints:
Код:
[11:49:32] Straight: 'AndySedeyn'
And
PHP код:
#include <a_samp>
#include <formatex>
main() {
    
printf("Straight: '%q'""AndySedeyn");

Prints:
Код:
[11:53:11] Straight: ''
EDIT:

Here's the fixed formatex function: http://pastebin.com/gvE8PqBK , altered code:
PHP код:
// Handled by the original format function
case '*''i''d''x''h''c''s''f''b''q': { // I added 'q'
    // Get the argument address and save it for later
    #emit LCTRL        5
    #emit LOAD.S.alt  iArg
    #emit ADD
    #emit LOAD.I
    #emit STOR.S.pri  iAddress
    #emit MOVE.pri
    #emit ADD.C       4
    #emit STOR.S.pri  iArg
    
aiArgs[iArgCount++] = iAddress;
    if (
s_szBuffer[iPos] == '*')
        continue;
    break;

Reply


Messages In This Thread
formatex - Improved "format" function! - by Slice - 26.01.2012, 08:00
Re: formatex - Improved "format" function! - by KingHual - 26.01.2012, 08:02
Re: formatex - Improved "format" function! - by kizla - 26.01.2012, 08:03
Re: formatex - Improved "format" function! - by [HK]Ryder[AN] - 26.01.2012, 08:05
Re: formatex - Improved "format" function! - by Slice - 26.01.2012, 08:10
Re: formatex - Improved "format" function! - by iPLEOMAX - 26.01.2012, 08:19
Re: formatex - Improved "format" function! - by fiki574 - 26.01.2012, 08:30
Re: formatex - Improved "format" function! - by T0pAz - 26.01.2012, 08:37
Re: formatex - Improved "format" function! - by Kaperstone - 26.01.2012, 08:48
Re: formatex - Improved "format" function! - by System64 - 26.01.2012, 09:02
Re: formatex - Improved "format" function! - by Lorenc_ - 26.01.2012, 09:07
Re: formatex - Improved "format" function! - by [Diablo] - 26.01.2012, 10:56
Re: formatex - Improved "format" function! - by [XST]O_x - 26.01.2012, 13:46
Re: formatex - Improved "format" function! - by hossa - 26.01.2012, 14:13
Re: formatex - Improved "format" function! - by iZN - 26.01.2012, 14:24
Re: formatex - Improved "format" function! - by TheArcher - 26.01.2012, 16:29
Re: formatex - Improved "format" function! - by TheBetaFox - 26.01.2012, 16:39
Respuesta: formatex - Improved "format" function! - by [Nikk] - 26.01.2012, 16:49
Re: formatex - Improved "format" function! - by Slice - 29.01.2012, 13:32
Re: formatex - Improved "format" function! - by Niko_boy - 29.01.2012, 14:26
Re: formatex - Improved "format" function! - by DeathTone - 19.02.2012, 02:00
Re: formatex - Improved "format" function! - by Slice - 19.02.2012, 10:33
Re: formatex - Improved "format" function! - by Shelby - 19.02.2012, 23:05
Re: formatex - Improved "format" function! - by shitbird - 21.02.2012, 15:03
Re: formatex - Improved "format" function! - by Marricio - 21.02.2012, 19:54
Re: formatex - Improved "format" function! - by Joey^ - 03.03.2012, 16:49
Re: formatex - Improved "format" function! - by Niko_boy - 04.06.2012, 14:28
Re: formatex - Improved "format" function! - by Slice - 04.06.2012, 14:40
Re: formatex - Improved "format" function! - by Slice - 04.06.2012, 16:35
Re: formatex - Improved "format" function! - by QuaTTrO - 22.07.2013, 07:33
Re: formatex - Improved "format" function! - by Omirrow - 23.07.2013, 19:38
Re: formatex - Improved "format" function! - by Darnell - 24.07.2013, 13:07
Re: formatex - Improved "format" function! - by Ryan_Bowe - 14.03.2015, 20:55
Re: formatex - Improved "format" function! - by Dayvison_ - 01.04.2016, 19:17
Re: formatex - Improved "format" function! - by bsHoX - 03.04.2016, 03:18
Re: formatex - Improved "format" function! - by AndySedeyn - 02.10.2016, 10:02
Re: formatex - Improved "format" function! - by Adiiti - 20.08.2017, 14:55

Forum Jump:


Users browsing this thread: 3 Guest(s)