Search Results
Quote: Originally Posted by Sew_Sumi It's a function, not a stock. Should chase up proper coding methods in your preparation. Documentation in the code, proper indentation, and having good...
182
Quote: Originally Posted by NaS You should make a list of things you definitely want to implement (even if later). That's the first step to see what is required and what to add in the firs...
182
Whats the problem, is the text coming out black?
313
I started writing a script for a new roleplay I plan on making in my spare time, does anyone have any tips that come really handy when the script starts to get bigger, or things that can be annoying i...
182
Код: #define MAX_GARBAGE_BINS 30 Код: new GarbageBinX[MAX_GARBAGE_BINS]; new GarbageBinY[MAX_GARBAGE_BINS]; new GarbageBinZ[MAX_GARBAGE_BINS]; Under OnGamemodeInit Код: //Garbage Job ...
93
Quote: Originally Posted by PowerPC603 PHP код: mysql_format(mysql, query, sizeof(query), "UPDATE `users` SET `vReg`='%s' WHERE `ID`='%d'", PlayerInfo[playerid][vReg], Pla...
127
Quote: Originally Posted by Vince There is a difference between ` (backtick) and ' (quote). The latter one must be used to enclose strings. Avoid using backticks if you can. English is ...
127
Sorry for bringing this thread back up but I never got back to it and when I did it still doesn't work. I know the problem but I don't know a solution. So if I do this: Код: mysql_format(mysql, ...
127
Код: mysql_format(mysql, query, sizeof(query), "UPDATE `users` SET `vReg`=%s, `vVReg`=%s, `vVVReg`=%s, `vVVVReg`=%s WHERE `ID`=%d", PlayerInfo[playerid][vReg], PlayerInfo[playerid][vVReg], PlayerI...
127
Quote: Originally Posted by Konstantinos What's the point of selecting everything from database and until the query is executed, the player has already disconnected and GetPlayerPos should...
164
Quote: Originally Posted by Konstantinos Are you sure that you do not reset the variables in OnPlayerDisconnect and then trying to save? It has to be vice versa. OnPlayerDisconnect: Ð...
164
Quote: Originally Posted by Mencent Hello! Can we look the code of the whole OnPlayerDisconnect-Callback or where you save the player? Код: PlayerInfo[playerid][pInt] = GetPlayerIn...
164
Код: [13:41:55] [DEBUG] mysql_format - connection: 1, len: 512, format: "SELECT * FROM `users` WHERE `Username` = '%e' LIMIT 1" [13:41:55] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FR...
164
Код: new query[518]; mysql_format(mysql, query, sizeof(query), "UPDATE `users` SET Admin=%d, Money=%d, posX=%f, posY=%f, posZ=%f WHERE ID=%d", PlayerInfo[playerid][pAdmin], PlayerInfo[playerid][p...
164
Quote: Originally Posted by Konstantinos When a player connects, the only thing you know is their name, not their unique ID to the database so you'll use the name for loading and ID for sa...
154
Код: PlayerInfo[playerid][pSpawn] = cache_get_field_content_int(0, "Spawn"); PlayerInfo[playerid][pGender] = cache_get_field_content_int(0, "Gender"); PlayerInfo[playerid][pLevel] = cache_get_fiel...
154
Quote: Originally Posted by Konstantinos "... 'Hours'=%d, 'Age'=%d, 'Bank'=%d, 'Model'=%d, 'Model1'=%d ..." You used '' around the fields name instead of ``. Shit. How do you do that l...
154
The saving part only saves the first set. So, for example: Код: new query[518]; mysql_format(mysql, query, sizeof(query), "UPDATE `users` SET `Admin`=%d, `Money`=%d, `posX`=%f, `posY`=%f, `posZ`=...
154
Код: cache_get_field_content_int(row, const field_name[], connectionHandle = 1) The above line of code is what I am using multiple times. Below is part of my code: Код: PlayerInfo[playerid][p...
154
Do you mean like: pawn Код: new label[128];format(label, sizeof(label), "%s", params);
146