SA-MP Forums Archive
Returning the same string - 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: Returning the same string (/showthread.php?tid=524587)



Returning the same string - Le3aT - 07.07.2014

I got a simple question

in this code

PHP код:
stock Path(playerid//Will create a new stock so we can easily use it later to load/save user's data in user's path
{
    new 
str[128],name[MAX_PLAYER_NAME];
    
GetPlayerName(playerid,name,sizeof(name));
    
format(str,sizeof(str),UserPath,name);
    return 
str;

I am a newbie to y_ini and whirlpool, can u give me a specific reason of returning that code as a string ?


Re: Returning the same string - Le3aT - 07.07.2014

simple question :/