Search Results
I'm not sure if I have interpreted the question correctly, but I'm guessing you want to count how many results that mysql query will give you? If so, I would use the following method: pawn Код: m...
64
If you look at the link Doreto gave you, you will find that mysql_query is R5 and R6 compatible only. In R7, it looks like equivalent functions are mysql_function_query or mysql_query_callback. The la...
259
To answer your original post, yes, it will not be selectable because of the text size. When using PlayerTextDrawTextSize on a textdraw with alignment 2, the Float: x is the height of the textdraw and ...
203
I would CTRL+F through your script for every instance that you use pInfo[playerid][Admin] (I assume this is the incorrect one) and check whether there is any instance where you are accidentally settin...
109
After executing your SELECT query and storing the result, you need to do a check to see if there were any results, which can be done as follows: pawn Код: mysql_query(yourquerystring);mysql_store_...
112
I'd suggest putting mysql_debug(1) at the top of OnGameModeInit / OnFilterScriptInit. This will log mysql activity into mysql_log.txt, allowing you to get a bit of further analysis. As you say your s...
112
Have you used SendClientMessage to display exactly what the variables are after using GetPlayerPos and again before using SetPlayerPos? I'd do that to confirm the coordinates are correct.
125
Quote: Originally Posted by leonardo1434 wouldn't be better just repair the vehicle each time is damaged? do this, or make a simple settimer. pawn Код: public OnVehicleDamageStatusUpd...
194
As a quick test, I have simply set it up so that every player-used vehicle has health set to 100000. I am surprised to find that vehicles are surviving my explosions! I swear certain explosions caused...
194
hansen111, Thanks again for your response. Unfortunately the recordings are created by players using /record in the server. I'm thinking about doing SetVehicleHealth to say 1000 when /record is type...
194
Hi, I would suggest the first lines of code within the OnPlayerText and OnPlayerCommandText callbacks should be a timer that raises a flag. Next, you want an If statement that checks if the flag has...
109
Thanks for the response hansen111. Yes, I am making/creating the recording in a vehicle set to infinite (Float:0x7F800000) health. The vehicle must have infinite health as it is a stunting server. I...
194
When I make a recording using StartRecordingPlayerData on a player that is inside a vehicle with it's vehicle-health set to infinite (Float:0x7F800000), the following occurs during playback of the rec...
194
I'm still no further with figuring this one out. I've tried adding a command to RepairVehicle and SetVehicleHealth to Float:0x7F800000 to all vehicles on the server, which has made no difference. I'm ...
73
I would suggest adding an IF statement inside your OnPlayerDeath callback. Within this IF statement, you can check whether the player who died was the last alive on his team and respond accordingly if...
63
Hello! In my stunting server, I use the infinite health float (Float:0x7F800000) for all of the vehicles. This has worked fine, until I recently implemented a new feature... The new command /record ...
73
The reason it is not saving the information after the dot(.) is because you are using the strval function to retrieve floats. strval saves the string as an integer. Try using the function floatstr for...
141
If you want to save information like this to a file, there is a great section on it in the wiki. You can read about it here: https://sampwiki.blast.hk/wiki/File_Functions There are other ways of savi...
144
The command to remove a vehicle component is: pawn Код: RemoveVehicleComponent(vehicleid, componentid). The component ID for NOS is 1010, and the component ID for hydraulics is 1087. Be careful t...
69
It looks like you have used the same coordinates for both positions. Change the one under the /Gateopen command.
49