SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 21/02/2020, 03:53 PM   #1
rogerin
Little Clucker
 
Join Date: Jan 2020
Posts: 13
Reputation: 0
Default String

Gostaria de saber se existe alguma função para INSERIR uma string dentro de outra, porém somente ao passar um certo limite de caracteres. Exemplo limite de 10 caracteres:

De: aaaaaaaaaaaaaaaaaa
Para: aaaaaaaaaa@aaaaaaaa

O caractere @ seria inserido após o décimo caractere, sem substituir nenhum caractere.

Procurei nos projetos strlib e não encontrei.
rogerin is offline   Reply With Quote
Old 21/02/2020, 03:59 PM   #2
NWDMadara
Gangsta
 
NWDMadara's Avatar
 
Join Date: Mar 2018
Posts: 511
Reputation: 16
Default Re: String

strins

string insert

strins(string, "@", 10 + 1);
NWDMadara is offline   Reply With Quote
Old 21/02/2020, 04:28 PM   #3
rogerin
Little Clucker
 
Join Date: Jan 2020
Posts: 13
Reputation: 0
Default Re: String

Quote:
Originally Posted by NWDMadara View Post
strins

string insert

strins(string, "@", 10 + 1);
Procurei em tudo, menos nas funções nativas kkkkk

Funcionou perfeitamente, +REP
rogerin 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
error 037: invalid string (possibly non-terminated string) Jihanz Scripting Help 7 27/02/2017 01:29 PM
input line too long (after substitutions) invalid string (possibly non-terminated string) StackedPizza Scripting Help 4 09/11/2016 02:34 AM
error 037: invalid string (possibly non-terminated string) Ghost112397 Scripting Help 2 27/11/2015 04:05 PM
string too small. but i dont wanna make the string like 9999.. niels44 Scripting Help 2 23/10/2012 05:36 PM
input line too long (after substitutions) - invalid string (possibly non-terminated string) MahmutBey Help Archive 6 10/03/2011 01:39 PM


All times are GMT. The time now is 10:00 PM.


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