Mask id problem
#2

You need to create the variable globally (outside any bracket).

pawn Код:
// Outside any bracket, you may aswell rename "rand" to something related to the player mask.
new rand = random(9999)+1;

// Wherever you have this code
new string[300];
format(string, sizeof(string), "Stranger[%d]",rand);
if(PlayerTemp[playerid][hname]==1) myStrcpy(sender,string);
else myStrcpy(sender,RPName(playerid));

if(text[0]== '('){
    new mid[MAX_STRING];
    strmid(mid,text,1,256,sizeof(mid));
    format(stringa,sizeof(stringa),"%s says: (( %s ))",RPName(playerid),mid);
Reply


Messages In This Thread
Mask id problem - by ThatFag - 18.08.2016, 10:31
Re: Mask id problem - by Marricio - 18.08.2016, 12:21
Re: Mask id problem - by ThatFag - 18.08.2016, 13:16
Re: Mask id problem - by Marricio - 18.08.2016, 15:01
Re: Mask id problem - by ThatFag - 18.08.2016, 15:25
Re: Mask id problem - by Marricio - 18.08.2016, 15:31
Re: Mask id problem - by ThatFag - 18.08.2016, 15:40

Forum Jump:


Users browsing this thread: 1 Guest(s)