stock KickMessage(playerid, message[]) {
new strMessage[144];
format(strMessage, sizeof(strMessage), "%s: %s", SERVER_PREFIX, message);
SendClientMessage(playerid, COLOR_WHITE, strMessage);
SetTimerEx("_KickMessage", 250, false, "i", playerid);
return 1;
}
callback:_KickMessage(playerid) {
Kick(playerid);
return 1;
}
Dialog:LoginDialog(playerid, response, listitem, inputtext[]) {
if(response) {
return 1;
} else {
KickMessage(playerid, "Autenticaзгo obrigatуria. ййй");
return 1;
}
}
|
Ok, so, this is a bug ( i think ), thats how i solved this (weirdly), i discovered that Pawn automatically saves files in ANSI, so i'm my thinking this is what was happening:
LimaRP.pwn is saved in ANSI. All the custom includes are in UTF-8. In the compilation/build, UTF-8 characters will be shown as ANSI, and it causes the characters to appear like in the above attachments. Solution: Change all files/includes back to ANSI. Check in the attachments. Hope this thread will help future scripters with the same issue ! Thanks to everyone who tried to help so quickly ! |
|
SA-MP can't format some of the letters,the biggest example of that is when you use the '%' sign in SA_MP chat and it automatically converts into '#'
|
stock KickMessage(playerid, message[]) {
new strMessage[144];
format(strMessage, sizeof(strMessage), "%s: %s", SERVER_PREFIX, message);
SendClientMessage(playerid, COLOR_WHITE, strMessage);
SetTimerEx("Kick", 1000, false, "i", playerid);
return 1;
}
forward Kick(playerid)
public Kick(playerid)
{
Kick(playerid);
return 1;
}
Dialog:LoginDialog(playerid, response, listitem, inputtext[]) {
if(response) {
return 1;
} else {
KickMessage(playerid, "Autenticaзгo obrigatуria. ййй");
return 1;
}
}
|
hmm,thats weird,ive never faced a problem like this/
Try this :- Код:
stock KickMessage(playerid, message[]) {
new strMessage[144];
format(strMessage, sizeof(strMessage), "%s: %s", SERVER_PREFIX, message);
SendClientMessage(playerid, COLOR_WHITE, strMessage);
SetTimerEx("Kick", 1000, false, "i", playerid);
return 1;
}
forward Kick(playerid)
public Kick(playerid)
{
Kick(playerid);
return 1;
}
Dialog:LoginDialog(playerid, response, listitem, inputtext[]) {
if(response) {
return 1;
} else {
KickMessage(playerid, "Autenticaзгo obrigatуria. ййй");
return 1;
}
}
|
#define callback:%0(%1) forward %0(%1);public %0(%1)
|
Let me try, but btw the "callback:" is a macro!
Код:
#define callback:%0(%1) forward %0(%1);public %0(%1) |
|
Open file with Notepad++. Go to the charset menu and make sure that it is set to UTF-8 (without BOM) and not ANSI. If it isn't, set it to that. Save file and then try to compile again.
|
|
Open file with Notepad++. Go to the charset menu and make sure that it is set to UTF-8 (without BOM) and not ANSI. If it isn't, set it to that. Save file and then try to compile again.
|