Search Results
Quote: Originally Posted by Vince It's a good language for its purpose, but it does not bode well on your resume. Employers have never heard of it. A shame, really. It's brilliant for t...
758
Yes, but it is out of your control script-wise. The SA-MP server/Pawn virtual machine will need to update to 64-bits before then. Eventually it will hit the year 2038 problem (similar to Y2K) unless S...
240
Do you mean when the "time" parameter you pass in is greater than 10 digits? If this algorithm works fine for numbers under 10 digits then I would guess it's because of how the underlying bits are rep...
240
Good question. I have wondered the proper reason myself.
827
It appears that you are trying to use 'model id' rather than 'vehicle id'. Vehicle id is a unique ID which indentifies an "instance" of a vehicle (can have multiple vehicles with the same model id). M...
288
Something might be up with Pawn's implicit float/int conversion (operator +=). Try doing it explicitly using the float() function... try changing, pawn Код: Total_Cost_LV += EvaluateHouse(houseid...
252
TIL a little trick to extend the amount of statements executed in ternary statements. Never thought about using the ',' operator this way. Group of statements must be enclosed in brackets. It's a nea...
53,831
I tend to layout gamemode projects by seperating the files into folders. The folders symbolize a library or a 'class' of related methods. The rough idea is as follows: <mode>.pwn (Link all the m...
1,845
Quote: Originally Posted by Romanius PHP код: private Vector3[] playerSpawns = new Vector3[]         {             new Vector3(1958.3783f, 1343.1572f, 15...
5,889
Quote: Originally Posted by Cell_ Why would someone put something in their GM when they aren't even going to use it? Look I'm not saying it's wrong to not use stock, I'm just saying the...
909
You make it sound it sound as if a method tagged stock will hide all warnings associated with it. This is a side-effect of what an unused stock method does i.e. nothing because it's not compiled into ...
909
Try changing the header of the method from: frandom(Float:max, Float:min = 0.0, dp = 4) to: Float:frandom(Float:max, Float:min = 0.0, dp = 4)
205
Quote: Originally Posted by Skorch I am not familiar with HTTP functions, nor i know how they work, so i am asking if it's possible. If yes, how? I am using MySQL to get current UNIX time...
176
Your best bet is to use MapAndreas. That's assuming npcmodes also has access to plugins. SetPlayerPosFindZ requires SA be running on the client. The height calculation is performed using the geometry...
150
Quote: Originally Posted by Slice How should rangebans be managed? Currently they blend together with the normal bans, but perhaps a bit too much. Whitelist functionality perhaps? Ban e...
1,800
Excellent work Slice! I was going to write my own that works similarly, but never got around to it. It will be implemented in littlewhitey's new gamemode. Loving the use of IP as integer and functio...
1,800
Quote: Originally Posted by TheNavigator That appears at ammunition. I want only that business one to appear Quote: Originally Posted by TheNavigator But that will turn off...
427
Oh, looks like you're passing in the keys from OnPlayerKeyStateChange. Those keys are different keys to the direction keys. The KEY_DOWN, KEY_UP, KEY_LEFT and KEY_RIGHT don't work in OnPlayerKeyState...
220
You need to post more code. What is the IsKeyJustDown() method?
220