Search Results
Hello, I'm making a registration system from scratch and I have a trouble. I'm trying to check if the username already exists on database but always return that the user is not registred. Example: I ...
81
The variables are: Код: Vehicle[MAX_VEHICLES][Color1]; Vehicle[MAX_VEHICLES][Color2]; The function that saves the data in MySQL: Код: public OnVehicleRespray(playerid, vehicleid, color1, color...
196
Thanks to all, I'll try the Aerotactics solution, sure I'm using a timer for fuel and I'm storing all the data in MySQL. The problem is, that the person who is changing the colors also changes de colo...
196
Hello! I have a RP Server with my own Gamemode. From Yesterday I'm having some problems with someone who enters server when nobody's in an change the vehicle colors of the vehicle server. How I can ...
196
Hello! I'm trying to make a roleplay test for newer users and I want to make it random. I don't want to do (example): Код: #define test_1 150 #define test_2 151 #define test_3 152 CMD:test(playe...
50
Hello, I want to know if there's an option to get the Vehicle Spawn Position. My idea is to create a work and when they have finished the work, set a checkpoint exactly where the car gets spawned firs...
60
That's not the code, this is the vehicle enumerator. Show us the way you are selling the car.
133
Код: new IsNew[MAX_PLAYERS]; public OnPlayerConnect(playerid) { IsNew[playerid] = 1; } public OnPlayerSpawn(playerid) { if(IsNew[playerid] == 1) { // If you are using ZCMD ...
87
https://sampwiki.blast.hk/wiki/SetPlayerMapIcon Код: SetPlayerMapIcon (playerid, iconid, Float:x, Float:y, Float:z, markertype, color, style); playerid The ID of the player to set the map icon fo...
133
Hello. I've made a custom Inventory system and now I'm making the actions for the items. I've created a command called /use, this checks what object attached you have in your hand and applies an speci...
73
I think sscanf it's a simpliest way to save 14 columns in mysql. Код: if (a[s] > 0) { AddVehicleComponent(Car[idx][VehicleID], a[s]); printf("Component: %i", a[s]); } // The printf results...
64
Hello, I'm trying to add car modifications. I have made these basic system to test it after to implement in the gamemode (MySQL based). Код: // ModTest will be the string in MySQL stored and Vehi...
64
Quote: Originally Posted by Dayrion I don't have my pc now but it should be a<i>[5] only without the p.. Sscanf retrieves the data between the p<,> (comma). This is a workab...
100
Hello! I'm trying to get from an array the data using sscanf. I'm doing this: Код: // The array contains this: "0,5,5,0,3". new a[5]; sscanf(PlayerInfo[playerid][Inventory], "p<,>a<i>...
100
Hello! I'm having troubles with health. ID 0 is inmortal, he doesn't recive any damage (only if he burns on fire or fall from hight...). But the other id's works fine, they recive all the damage. I'm...
74
No, what I want is to unmark the mark xd I don't know If you understand me. This is the example: Код: // I want players see me in mini-map CMD:markme(playerid, params[]) { for(new i; i < MAX_...
118
If I want to remove a SetPlayerMarkerForPlayer(playerid, showplayerid, color); how it can be done? Код: CMD:markme(playerid, params[]) { for(new i; i < MAX_PLAYERS; i++) { if(IsPlayerCon...
118