error 027: invalid character constant
#1

pawn Code:
format(stats, sizeof(stats), "Kills: %d\n\Deaths: %d\n\Money: %i$\n\Your IP: %s\n\Your Country: %s", GetPlayerScore(playerid), deaths[playerid], GetPlayerMoney(playerid),IP,GetPlayerCountryName(playerid));
Any help is appreciated,thanks.
Reply
#2

Try this
pawn Code:
format(stats, sizeof(stats), "Kills: %i\n\Deaths: %i\n\Money: %i$\n\Your IP: %s\n\Your Country: %s", GetPlayerScore(playerid), deaths[playerid], GetPlayerMoney(playerid),IP,GetPlayerCountryName(playerid));
The problem is most likely in the \ symbols
Reply
#3

Same
Reply
#4

Replace
Code:
\n\
with
Code:
\n
Everywhere in your string.
Reply
#5

Thanks!
Reply
#6

Try \n instead of \n\
Edit: Oh fouck it! -.-
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)