Search Results
Quote: Originally Posted by Y_Less So you think repeatedly modifying code until it fixes all bugs and corner-cases is better than just using existing code that works? What kind of bugs ...
22
Yes, there has been a leap second. This can also be considered, by leaving out a second if the Timestamp is greater than the time when it was added. The function can easily be adjusted for this, if ne...
22
Stop bumping your topic within under 24 hours, please. Please put your complete code into a pastebin.com and post it here, for us to review it and locate the error.
24
Y_Less, I have been using this function for many many years and apart from the little fix posted by me on the last page of the thread, there were no issues, ever. It will handle the case of Longover v...
22
You need to have at least one public function. For example OnGameModeInit. Код: public OnGameModeInit() { return 1; }
24
The code is supposed to be like this: Код: new y, m, d, hour, minute, second; TimestampToDate(gettime(), y, m, d, hour, minute, second, -6);
22
You are not even using get TimestampToDate function here. Use it, otherwise it can't work, obviously.
22
Please post your code and explain what's not working.
22
Use GetTickCount instead of gettime. It returns milliseconds. Take the difference between the GetTickCount when the race started and the current GetTickCount and calculate the times.
17
Use this Include: https://sampforum.blast.hk/showthread.php?tid=347605 For the Timestamp use the return value of gettime(). And DO NOT Bump within a few minutes!
22
Try another materialindex (possible is 0-15), other than 0 in SetDynamicObjectMaterial.
16
This might help you: https://forum.sa-mp.com/showpost.php...53&postcount=4 Get the position of your object and use the function to make the player facing the object.
17
Quote: Originally Posted by TheToretto This will not work. As the players surely have packetloss, the ideal will be locking the vehicles when they stream in. There are techniques to fin...
39
Quote: Originally Posted by TheToretto Explain why not Because it is pointless to use a counter when attempting to enter, when the player is already inside the Hydra on first try due to...
39
Hi Alex, in OnPlayerEnterVehicle: Code: if(GetVehicleModel(vehicleid) == 520 && User[playerid][accountVIP] <= 0) { TogglePlayerControllable(playerid, false); TogglePlayerControllable...
39
The reason for this is usually very simple. You somewhere delete 3DLabels with a variable that has no value, means has the value 0. This will delete the 3D-Label with the ID 0, the first 3D Label. Yo...
22
Quote: Originally Posted by PoniStar Yeah, but i think it will just decrease when he is online ! Don't "think", just give it a try. As Banditul18 said, it will save the timestamp.
16
That is what it does. Save it in the player file or MySQL Database, like any other Stat, for example kills, money or whatever.
16
You can search for "kills" and clone everything in the same way. Kills is an Integer amount, by following the way it is coded, you can add any other Integer too. No need to say sorry, we all were lea...
20