SA-MP Forums Archive
How to do this? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to do this? (/showthread.php?tid=252219)



How to do this? - fissekarl - 30.04.2011

Is this possible if yes, could you show me how?

By changing many text by 1 define line

lets say this is the define line

pawn Код:
#define TEST "SAMP"
then this line will automaticly changed to SAMP

pawn Код:
format(string,sizeof(string),"TEST Member: %s has joined",PlayerName(playerid));
The test will be changed to samp?


Re: How to do this? - austin070 - 30.04.2011

pawn Код:
format(string,sizeof(string),"%s Member: %s has joined",TEST, PlayerName(playerid));
Try that.


Re: How to do this? - MadeMan - 30.04.2011

This should work

pawn Код:
format(string,sizeof(string),TEST" Member: %s has joined",PlayerName(playerid));



Re: How to do this? - fissekarl - 30.04.2011

Okay, I see

Which one would be more efficent and better?

Austin or MadeMan?