SA-MP Forums Archive
[Question]format(...) - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Question]format(...) (/showthread.php?tid=190065)



[Question]format(...) - DRIFT_HUNTER - 14.11.2010

Ok i used
pawn Код:
format(gang_name, sizeof(gang_name), "%s.gang", gang_name);
example i input TEST it will format it to TEST.gang
What i need now is to get rid of that .gang in SendClientMessage
pawn Код:
format(string, sizeof(string), "You have created gang %s ", gang_name);
SendClientMessage(playerid, 0x00FF00AA, string);
These will send:
You have create gang TEST.gang
I need get rid of .gang
Any way to do it?

And dont say FIRST SEND MESSAGE THEN format it


Re: [Question]format(...) - willsuckformoney - 14.11.2010

take .gang out of the format line?


Re: [Question]format(...) - Retardedwolf - 14.11.2010

strdel? (8char)


Re: [Question]format(...) - DRIFT_HUNTER - 14.11.2010

Quote:
Originally Posted by willsuckformoney
Посмотреть сообщение
take .gang out of the format line?
Yes .