Posts: 900
Threads: 21
Joined: Jan 2007
Reputation:
0
I'm not sure, maybe it's possible using preprocessor, but I'm still not sure...
Anyway, in these kind of cases it's always a good option to use arrays and enums.
Posts: 328
Threads: 24
Joined: Jul 2009
Reputation:
0
new PFirstName[MAX_PLAYER_NAME];
new PLastName[MAX_PLAYER_NAME];
new name[MAX_PLAYER_NAME];
format(name,sizeof(name),"%s_%s",PFirstName,PLastN ame);
SetPlayerName(playerid,name);
Make your changes depending on your saving sys !
Posts: 411
Threads: 41
Joined: Jan 2009
Reputation:
0
new pName gets replaced and will be seen as new realplayername what is so hard to understand by that?
Sorry, but I'm not experienced in this, just wanted to post the thing above.
Posts: 113
Threads: 1
Joined: Jun 2008
Reputation:
0
It isn't because variable is just readable reference to memory location where data is. You can get variable as value or as reference.