SA-MP Forums Archive
Format error - 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: Format error (/showthread.php?tid=469282)



Format error - lramos15 - 12.10.2013

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


Re: Format error - ]Rafaellos[ - 12.10.2013

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



Re: Format error - lramos15 - 12.10.2013

that didnt fix it


Re: Format error - thomaswilliams - 12.10.2013

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


Re: Format error - thomaswilliams - 12.10.2013

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]);



Re: Format error - lramos15 - 12.10.2013

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


Re: Format error - lramos15 - 13.10.2013

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


Re: Format error - xVIP3Rx - 13.10.2013

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


Re: Format error - lramos15 - 13.10.2013

What do you mean?


Re: Format error - ]Rafaellos[ - 13.10.2013

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