Search Results
Does the MySQL server run on the same machine as the SAMP server? That would be recommended for fast access to your database. Connecting to a remote MySQL server is usually not done. It may work, but...
172
Recommending people to use DINI while learning to code is the same as recommending them to use GOTO everywhere, like they did in BASIC languages 30 years ago. If you want to learn coding, do it right...
149
If you just want to give a player some money, you don't need to know the money he has upfront. PHP код: UPDATE playerdata SET Money = Money + '%i' WHERE UserID = '%i'  Such a ...
89
Use a timer with an interval of 1 second to update the ping textdraw, that should be enough. Most online-games don't even display your ping all the time. They display the ping when you use a /ping com...
157
%e is the same as %s (a string), but automatically escaped to prevent SQL injection. Never use %s where you're loading/saving player-inputted text like a name or so.
172
PHP код: cache_get_value_name_float(i, "Cam_ID", DID);  You still need this to load the ID from the database. Without it, DID will always have the value 0 and you will still store all d...
159
First of all: PHP код: DID = cache_get_value_name_int(i, "Cam_ID", gCameras[DID][Cam_ID]);  Taken from the wiki: Quote: cache_get_value_name_int Description: Retrieves a ...
159
PHP код: for(new i; i < 14; i++)  {     if(GetVehicleComponentType(componentid) == i)      {         AVehicleData[vehicleid][Components][i] = componentid;     ...
214
Directly taken from my new gamemode: PHP код: // This callback gets called whenever a player mods his vehicle public OnVehicleMod(playerid, vehicleid, componentid) {     // Se...
214
Every house should have it's own ID stored in the database as well to be able to identify each house separately when you want to adjust data for a house later. You can then use that ID as the index o...
136
Are all checkpoints resized for all players at once? Or player per player? If it's player per player (when they enter a checkpoint for example), it shouldn't matter. I guess not all 500 players will ...
132
Your textdraw goes from x = 361 (position of the top-left corner as defined in CreatePlayerTextDraw) to x = 385 (right-corner as defined in PlayerTextDrawTextSize), making it 24 pixels wide. You need ...
52
You can try to set the new checkpoint via a timer. I've experienced problems as well using a clickable textdraw menu by hiding all textdraws and the re-opening them in the same function. The menu sta...
132
I don't see why you save a cache for later use. When a player connects, just load his ID in the database that matches his name and load the hashed password and salt, store all 3 (password, salt and I...
1,497
They still need to be informed that there is some cargo on that vehicle/trailer anyways, otherwise they see it as a free trailer found somewhere and don't know what to do with it. Each cargo-type has...
23,528
Rewriting the job-system to function for almost any class seems to be harder than I thought. Previously, I just used passengers as cargo and only the player's vehicle without a trailer. The new syste...
23,528
Quote: Originally Posted by feheristi97 You gonna release V2 version? If yes, I hope it's a MySQL version! When it's finished, it will be released. And yes, V2 is fully MySQL. I've ...
23,528
You won't need licenses anymore. The license system like in V1 has been scrapped from V2. The route-types change radically and allow for a high degree of flexibility now. Some routes will be set to ...
23,528
I had written a small "/work" command with preset data to test the traindriver code for transporting passengers in a never-ending route. This command has now been rewritten to actually gather the req...
23,528
The first class to have a working job-system is the traindriver class, using a passenger train. I've uploaded a video onto my youtube channel to show it. It's basic but functional. The job itself is ...
23,528