SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 02/08/2020, 01:41 PM   #1
FelipeSilvaGM
Big Clucker
 
FelipeSilvaGM's Avatar
 
Join Date: Apr 2020
Location: Casa do Carai
Posts: 100
Reputation: 1
Default "Dividir" String

Olá, bom queria saber como "dividir" a string, já procurei mas não achei
Exemplo: Quando falar algo no chat

Nick diz: Hoje o dia esta muito...
... belo.

Tipo isso, agradeço desde já
FelipeSilvaGM is offline   Reply With Quote
Old 02/08/2020, 01:54 PM   #2
MasterWinX
Big Clucker
 
MasterWinX's Avatar
 
Join Date: Mar 2019
Location: San Fierro
Posts: 95
Reputation: 1
Default Re: "Dividir" String

Peguei da Gamemode Paradise City!

Deve ajudar:

PHP Code:
SendMultiMessage(playeridcolormessage[])
{
    if(
strlen(message) > 144)
    {
        new
            
secondLine[144];

        
strmid(secondLinemessage140strlen(message));
        
strdel(message140strlen(message));
        
strins(message"..."140144);
        
strins(secondLine"..."0);

        
SendClientMessage(playeridcolormessage);
        
SendClientMessage(playeridcolorsecondLine);
    }
    else
        
SendClientMessage(playeridcolormessage);
    return 
1;

__________________
MasterWinX is offline   Reply With Quote
Old 02/08/2020, 01:55 PM   #3
FelipeSilvaGM
Big Clucker
 
FelipeSilvaGM's Avatar
 
Join Date: Apr 2020
Location: Casa do Carai
Posts: 100
Reputation: 1
Default Re: "Dividir" String

Irei testar
FelipeSilvaGM is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[easyMysql] error 001: expected token: "-string end-", but found "-identifier-" Aerotactics Scripting Help 6 18/07/2019 01:35 AM
xyz.pwn(22109) : warning 214: possibly a "const" array argument was intended: "string" Belengher Scripting Help 8 20/10/2018 07:22 PM
error 001: expected token: "-string end-", but found "-identifier-". When compiling a scipt with register/login Gorgeousmaniac Scripting Help 3 22/08/2016 10:11 AM
error 001: expected token: "-string end-", but found "-identifier-" Any Ideas? Jack_Rocker Scripting Help 4 04/11/2011 01:03 PM


All times are GMT. The time now is 07:20 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.