Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

format string issue - Double's

$
0
0
Unable to find the reason this is happening.

The first name is set from the previous dialog and works just fine. The second name(below code) works just fine... Until I use both in the same format string. It will only show the first letter of the first name but repeat the last name twice.

Say I enter the;

first name: George.
Last Name: Carpenter

It will come out with:

GCarpenter Carpenter

PHP Code:

if(response
            {
                new 
fstr2[128];
                
format(CharCreate[playerid][lastname], 14"%s"inputtext);\
                
format(fstr2128"name: %s %s",CharCreate[playerid][firstname],CharCreate[playerid][lastname]);
                
SendClientMessage(playeridCOLOR_WHITEfstr2);
                
ShowCharCreateLastname(playerid"");
            } 


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>