SA-MP Forums Archive
simulation in a string - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: simulation in a string (/showthread.php?tid=641620)



simulation in a string - SetPlayerNameTag - 18.09.2017

Hm.. I found the object I was looking for but I have another question

How can I simulation in a string ?

Ex: He.. llo, wher... e you.. fro..?


Re: Signal tower model id? - Hansrutger - 18.09.2017

Get the map editor, launch it and go to Los Santos Richman. It should be close to the small very small dirt shortcut between two roads on opposite side of the hill where it is standing. Double click the object to see its information.


Re: Signal tower model id? - SetPlayerNameTag - 18.09.2017

Quote:
Originally Posted by Hansrutger
Посмотреть сообщение
Get the map editor, launch it and go to Los Santos Richman. It should be close to the small very small dirt shortcut between two roads on opposite side of the hill where it is standing. Double click the object to see its information.
I found, thanks.

Can you check the thread again?


Re: simulation in a string - SetPlayerNameTag - 18.09.2017

Quote:
Originally Posted by DBZdabIt3Bro7
Посмотреть сообщение
PHP код:
static text[144];
// make text say something
strcat(text"Hello from the other side");
for(new 
char 0char strlen(text); char += random(5) + 2) {
   if(
text[char] != ' ') {
      
strins(text".. "char);
   }
}
printf("String is now: \"%s\""text); 
Is that what you wanted?
It works perfect for English language, but for Chinese language it may happens some messy symbols..


Re: simulation in a string - SetPlayerNameTag - 18.09.2017

Quote:
Originally Posted by DBZdabIt3Bro7
Посмотреть сообщение
Not sure but that probably has to do with your console's text font or Arial in general, used by SAMP's client messages.
Never heard about this, Could you tell me more?

EDIT: I didn't test it out in the console but in-Game it actually messes up sometimes (also I'm using ProxDetector function that including with another function to having a line feed.)