SA-MP Forums Archive
how to use strcat here? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: how to use strcat here? (/showthread.php?tid=596779)



how to use strcat here? - xTURBOx - 22.12.2015

How can i use strcat here?
PHP код:
        format(stringsizeof(string),"{FF0000}General Statistics\n\n{00FFFF}Player Name:{00FF00} %s\n{00FFFF}Score:{00FF00} %i\n{00FFFF}Money :{00FF00} %i\n{00FFFF}Skin:{00FF00} %i\n{00FFFF}Wanted level:{00FF00} %i\n{00FFFF}Ping:{00FF00} %i\n\n{FF0000}Record Statistics\n\n{00FFFF}Kills:{00FF00} %i\n{00FFFF}Deaths:{00FF00} %i\n{00FFFF}K/D ratio:{00FF00} %i\n{00FFFF}Players robbed:{00FF00} %i\n{00FFFF}Stores robbed:{00FF00} %i\n{00FFFF}Players Raped:{00FF00} %i" ,name,GetPlayerScore(playerid),GetPlayerMoney(playerid),GetPlayerSkin(playerid),GetPlayerWantedLevel(playerid),GetPlayerPing(playerid),playerData[playerid][playerKills],playerData[playerid][playerDeaths],ratio,playerData[playerid][playerRobberies],playerData[playerid][streetRobberies],playerData[playerid][streetRapes]);
        
ShowPlayerDialog(playerid,123,DIALOG_STYLE_MSGBOX,"{FFFF00} Statistics",string,"Close"""); 



Re: how to use strcat here? - FreAkeD - 22.12.2015

https://sampwiki.blast.hk/wiki/Strcat


Re: how to use strcat here? - Sh4d0w2 - 22.12.2015

An example :
PHP код:
new str[128], totalstr[128];
format(strsizeof(str),"Cash : %d",GetPlayerMoney(playerid));
strcat(totalstrstr);
ShowPlayerDialog(playerid,1232,DIALOG_STYLE_MSGBOX,"Your Stats",totalstr,"OK",""); 



Re: how to use strcat here? - xTURBOx - 22.12.2015

Quote:
Originally Posted by Sh4d0w2
Посмотреть сообщение
An example :
PHP код:
new str[128], totalstr[128];
format(strsizeof(str),"Cash : %d",GetPlayerMoney(playerid));
strcat(totalstrstr);
ShowPlayerDialog(playerid,1232,DIALOG_STYLE_MSGBOX,"Your Stats",totalstr,"OK",""); 
PHP код:
format(strsizeof(str),"Cash : %d",GetPlayerMoney(playerid));
strcat(totalstrstr); 
how do i continue adding other things?


Re: how to use strcat here? - Sh4d0w2 - 22.12.2015

Copy paste it :
PHP код:
new str[128], totalstr[128];
format(strsizeof(str),"Cash : %d",GetPlayerMoney(playerid));
strcat(totalstrstr);
format(strsizeof(str),"Scores : %d",GetPlayerScore(playerid));
strcat(totalstrstr);
ShowPlayerDialog(playerid,1232,DIALOG_STYLE_MSGBOX,"Your Stats",totalstr,"OK",""); 



Re: how to use strcat here? - xTURBOx - 22.12.2015

~delete~


Re: how to use strcat here? - Sh4d0w2 - 22.12.2015

I just edited my post before....