Format error
#1

Here is my format code
PHP код:
format(factionstring,256,"FACTION: %s% %s has invited you to %s%",FactionInfo[factionid][Rank10],pname,FactionInfo[factionid][fname]); 
I want it to Say Rank Name then name has invited you to Factionname but It won't work it just says Name has invited you to and that's it how do I fix this
Reply
#2

pawn Код:
format(factionstring,256,"FACTION: %s %s has invited you to %s",FactionInfo[factionid][Rank10],pname,FactionInfo[factionid][fname]);
Reply
#3

that didnt fix it
Reply
#4

Quote:
Originally Posted by lramos15
Посмотреть сообщение
that didnt fix it
Standby
Reply
#5

Quote:
Originally Posted by lramos15
Посмотреть сообщение
that didnt fix it
Try this:

Код:
format(factionstring,256,"FACTION: %s %s has invited you to %s%",FactionInfo[factionid][Rank10],[pname],FactionInfo[factionid][fname]);
or this:

Код:
format(factionstring,256,"FACTION: %s %s has invited you to %s%",FactionInfo[factionid][rank],pname,FactionInfo[factionid][frank][fname]);
Reply
#6

Still nothing it Says FACTION: Logan_Ramos has invited you to | and that's it i want it to say Sheriff Logan_Ramos has invited you to San Andreas Sheriffs Department like it's suppose to by reading rank name from file and faction name from file
Reply
#7

I'm able to use %d% to access integers but %s% doesn't seem to work and I don't know why
Reply
#8

Can you show where do you change or format
pawn Код:
FactionInfo[factionid][Rank10]
?
Reply
#9

What do you mean?
Reply
#10

That variables are empty for sure. If there is something on them it should shown in the format.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)