stranger chat help for /mask
#1

code;
Код:
    if(PlayerInfo[playerid][pMasked] == 1)
    {
        new string[128];
        format(string, sizeof(string)," Stranger: \%s\ ", text); // this is the error line
        SendClientMessage(playerid, COLOR_WHITE, string);
        return 0;
    }
    return 1;
}
errors;
Код:
C:\Users\Nathan\Desktop\Evation RP\Evation RP\gamemodes\ERP.pwn(70302) : error 027: invalid character constant
C:\Users\Nathan\Desktop\Evation RP\Evation RP\gamemodes\ERP.pwn(70302) : error 027: invalid character constant
new error, when players speak ingame it doesn't show the other players.
Reply
#2

pawn Код:
format(string, sizeof(string)," Stranger: \%s\ ", text);
to

pawn Код:
format(string, sizeof(string)," Stranger: %s ", text);
Reply
#3

thankyou.
Reply
#4

new error, when players speak ingame it doesn't show the other players.
Reply
#5

Show the code when not using /mask
Reply
#6

what is that?
idk where it is.
Reply
#7

Quote:
Originally Posted by Evation
Посмотреть сообщение
code;
Код:
    if(PlayerInfo[playerid][pMasked] == 1)
    {
        new string[128];
        format(string, sizeof(string)," Stranger: \%s\ ", text); // this is the error line
        SendClientMessage(playerid, COLOR_WHITE, string);
        return 0;
    }
    return 1;
}
This is the code for /mask chat, but do you have a normal chat also?
Reply
#8

umm no.
Reply
#9

Код:
if(PlayerInfo[playerid][pMasked] == 1)
    {
        new string[128];
        format(string, sizeof(string),"Stranger: %s ", text); 
        SendLocalMessage(playerid, string, 10.0, COLOR_WHITE, COLOR_WHITE);
        return 0;
    }
    return 1;
}
Stock SendLocalMessage somewhere in your script, search for it on forums...
SendClientMessage only sends the message to a SPECIFIC player, not players in range of the playerid
+rep if I helped you
Reply
#10

ill test that now
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)