How to save a simple string with Y_INI, SSCANF and ZCMD
#1

The title says it all, I have been looking around for a while, but I can't still find anything.

Here's a simple example:

PHP код:
CMD:
/
savetext [text1] [text2
FILE INI:
text1
text2 
Yes, I am willing to give some rep points.
Reply
#2

@shocktheripper '/save' already exists by default from SA:MP Client to save positions on-foot and in-vehicle. One more thing you don't need to use y_ini for this command. You can use the simplest codes by the sa-mp team. (I mean fopen, fclose etc.)
Reply
#3

Quote:
Originally Posted by bgedition
Посмотреть сообщение
@shocktheripper '/save' already exists by default from SA:MP Client to save positions on-foot and in-vehicle.
That's just an example.
Reply
#4

You can do this:
new txt[50], txt2[50];
SSCANF CODE WITH PARAMS
s [50], s [50]

format (text1, sizeof text1, txt);
format (text2, sizeof text2, txt2);

I'm from smartphone so...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)