04.01.2016, 22:11
Alright so, instead of having the system to display 1 split message it sends 2 exactly the same messages instead.
No errors when compiling
No errors when compiling
PHP код:
SendRPMessage(playerid,Float:tmpRange,tmpMsg[]) {
new Float:Pos[3],
string[128],
Length = strlen(tmpMsg);
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
foreach(new i : Player) {
if(IsPlayerConnected(i)) {
if(IsPlayerInRangeOfPoint(i,tmpRange,Pos[0],Pos[1],Pos[2])) {
if(Length > 80) {
strmid(string, tmpMsg, 0, Length / 2);
Msg(i,-1,tmpMsg);
strmid(string, tmpMsg, Length / 2, Length);
Msg(i,-1,tmpMsg);
}
else {
Msg(i,-1,tmpMsg);
}
}
}
}
return true;
}