Search Results
You should only save things that update frequently (such as online time, etc) when the player disconnects, but update instantly things that don't update too often such as admin level, vehicle ownershi...
174
Quote: Originally Posted by Shadow0707 #include <foreach> y_iterate is already included in the script. Quote: Originally Posted by StevenLV after i include foreach F:...
1,689
Quote: Originally Posted by whadez Well I guess it's up to preference . Could you share only the header of your CreateItem function? Also have you tried to printf all of the values to see ...
251
Quote: Originally Posted by kAn3 Hi, it happens when eg PHP код: new var[8];  format(var, sizeof var, "012345678"); // Array dimensions do no match  I know and...
251
Hi. I started working on a new gamemode and now I came to the part where I need to add random loot spawns. What I made is an array with all positions and an array of items which contains items' names,...
251
What you can do is return 0 at OnPlayerWeaponShot to desync the bullet so it won't take any damage or set everyone to the same team and create your own weapon damages.
196
I believe it's something to do with GetPlayerAmmo as it returns the old ammo so you need to subtract 1 from GetPlayerAmmo to get the new ammo. Also you should create a variable for the ammo and weapo...
717
Well, you can't see something that you are not showing. https://sampwiki.blast.hk/wiki/Function:GameTextForPlayer
79
You could save it as an integer, but I believe it's also possible to save it as a string and then use sscanf and the "x" specifier when you load it.
148
I'm pretty sure the issue is that you are using SpawnPlayer instead of TogglePlayerSpectating here. EDIT: Forgot to mention that JasonRiggs said that above already.
237
Код: if(Afk(i) == 1) You need square brackets there instead. EDIT: Seems like Meller and I posted at the same time.
104
The log seems to be fine for me as well. You could try Arthur Kane's way.
284
Well, I don't know what could be the problem because the code looks fine for me. Can you post your latest MySQL logs here after the two players connect?
284
Quote: Originally Posted by aoky LoggingTimer is used on OnPlayerConnect, and I never knew that. Thank's for the heads up. E: If the players log in-game one by one, it doesn't happen. If ...
284
Can you also show the line where you set the timer for LoggingTimer? By the way you don't need to escape players' names because they can't have any apostrophes in them. Not that it would change anythi...
284
Show the line where you send the OnAccountCheck query. My guess is that you forgot to pass playerid to OnAccountCheck and the playerid is always 0 there, that happened to me once.
284
I'd say San Fierro would be interesting because there are so few servers based in San Fierro (if there are any at all). That's my opinion.
680
Quote: Originally Posted by JaKe Elite PVars are slow. They may be slower than normal variables, but the difference of speed between them is in nanoseconds, you can't even notice that. ...
338
Quote: Originally Posted by cuber Impressive, good job. Thanks!
8,261