save data to string
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
It depends on what you want to do with it. If you want to store the data to a global variable (for everyone) then:
pawn Код:
// global:
new Update_data[128];
and to copy a string to another:
pawn Код:
strcpy(Update_data, data, 128);
and the macro:
pawn Код:
#define strcpy(%0,%1,%2) strcat((%0[0] = '\0', %0), %1, %2)
However, if you wanted to save each data for a different player, then you'd need to use 1 more dimension for the playerid.
ok, thx, but i still get a error, can i send you code in PM? it's only 103 lines, please
Reply


Messages In This Thread
save data to string - by ic3cr3am - 22.03.2014, 12:07
Re: save data to string - by Konstantinos - 22.03.2014, 12:12
Re: save data to string - by ic3cr3am - 22.03.2014, 12:22
Re: save data to string - by Konstantinos - 22.03.2014, 12:23
Re: save data to string - by ic3cr3am - 22.03.2014, 12:24
Re: save data to string - by Konstantinos - 22.03.2014, 12:29
Re: save data to string - by ic3cr3am - 22.03.2014, 12:31
Re: save data to string - by Konstantinos - 22.03.2014, 12:36
Re: save data to string - by ic3cr3am - 22.03.2014, 12:40
Re: save data to string - by Konstantinos - 22.03.2014, 12:45

Forum Jump:


Users browsing this thread: 1 Guest(s)