Is it possible to get a pawn variable value in HTML?
#1

ey' so, i was wondering if i could get values from

Код:
enum pData {
bla,
blabla,
baas90da7nd,
};

PlayerData[MAX_PLAYERS][pData];
^ this, in HTML? If yes, please tell me how, i'm trying to learn HTML/PHP/JS.
Reply
#2

No. You can not directly pass Pawn variable into HTML. That is why people use MySQL or SQLite Database. A same database is accessible by Pawn and your HTML pages.
Reply
#3

Hmm, how about a value from a .ini or text file, is it possible?
Reply
#4

Quote:
Originally Posted by SeanDenZYR
Посмотреть сообщение
Hmm, how about a value from a .ini or text file, is it possible?
Actually not, Because the INI files are not using anything related to HTML, but it's a normal saving to a file, So it's not.
Reply
#5

you have to add mysql database, what is used by gamemode and your webpage.
and user logs in and sees his stats
Reply
#6

You can read out ini files with Javascript, search on a search engine how to read out files with JavaScript and maybe you find what you need.
Reply
#7

thats stupid thing to do when you want to make good server
Reply
#8

Quote:
Originally Posted by CodeStyle175
Посмотреть сообщение
thats stupid thing to do when you want to make good server
i'm just asking, i'm not gonna make a user control panel or something.
Reply
#9

well its possible, because you can send http request with samp the sameway as webpage does and then you can save it to ini file, but its very slow way to save anything.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)