Problem with string range
#1

Alright so, instead of having the system to display 1 split message it sends 2 exactly the same messages instead.
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 
Player) {
        if(
IsPlayerConnected(i)) {
            if(
IsPlayerInRangeOfPoint(i,tmpRange,Pos[0],Pos[1],Pos[2])) {
                if(
Length 80) {
                    
strmid(stringtmpMsg0Length 2);
                    
Msg(i,-1,tmpMsg);
                    
                    
strmid(stringtmpMsgLength 2Length);
                    
Msg(i,-1,tmpMsg);
                }
                else {
                    
Msg(i,-1,tmpMsg);
                }
            }
        }
    }
    return 
true;

Reply


Messages In This Thread
Problem with string range - by TwinkiDaBoss - 04.01.2016, 22:11
Re: Problem with string range - by Lucky13 - 04.01.2016, 22:53
Re: Problem with string range - by TwinkiDaBoss - 04.01.2016, 23:13
Re: Problem with string range - by Lucky13 - 04.01.2016, 23:15
Re: Problem with string range - by TwinkiDaBoss - 05.01.2016, 14:45
Re: Problem with string range - by Lucky13 - 05.01.2016, 14:52
Re: Problem with string range - by Lucky13 - 05.01.2016, 14:54
Re: Problem with string range - by TwinkiDaBoss - 05.01.2016, 15:09
Re: Problem with string range - by Lucky13 - 05.01.2016, 15:18
Re: Problem with string range - by TwinkiDaBoss - 05.01.2016, 15:25

Forum Jump:


Users browsing this thread: 1 Guest(s)