\n not working
#5

Quote:
Originally Posted by Aarab
View Post
Code:
format(string,128,"Welcome %s , thanks for logging in!\nYour last login was on: %d-%d-%d , from IP adress: %s",...);

new string[128];
SendClientMessage(playerid, COLOR_CODE, "%d-%d-%d"); // extra line 1
I'm new in scripting, so I dont know or i'm right or not ^^
You have to format the %d-%d-%d, you can't just put it into the code and expect it to work. That's why we use the format() function. It allows us to replace %d, %s, %i, %f, etc with values of variables we specify.
Reply


Messages In This Thread
\n not working - by Jstylezzz - 23.02.2013, 17:07
Re: \n not working - by Scenario - 23.02.2013, 17:18
Re: \n not working - by Jstylezzz - 23.02.2013, 17:27
Re: \n not working - by Aarab - 23.02.2013, 17:36
Re: \n not working - by Scenario - 23.02.2013, 17:46

Forum Jump:


Users browsing this thread: 2 Guest(s)