Search Results
A quick search of the topic for this include yields the following information: https://forum.sa-mp.com/showpost.php...1&postcount=23
159
The OnPlayerDeath callback provides the reason for a player death, see the below wiki pages: https://sampwiki.blast.hk/wiki/OnPlayerDeath List of death reasons: https://sampwiki.blast.hk/wiki/Weapons...
142
Код: if(IsPlayerInRangeOfPoint(playerid, 2.0, -7.5863,-74.3160,3.1172)) return SendClientMessage(playerid,red,"ERROR:You must be near the Chest to use the command"); The above code will return the...
186
Quote: Originally Posted by RogueDrifter And the difference is? Stop the abuse of stock! https://sampforum.blast.hk/showthread.php?tid=570635
245
You need to check the actual gamemode script where the connection is made, search for the function mysql_connect. It is common that the connection details may be defined somewhere else in the script ...
420
It looks like you are entering incorrect MySQL connection details, you should check the details are correct in your script at mysql_connect.
420
Perhaps the database isn't connecting correctly? Have you checked your server log and database/storage (MySQL or other) logs for errors?
420
Try debugging the code to make sure that inputtext and pKod are actually being set correctly: Код: printf("inputtext is %s", inputtext); printf("pKod is %s", PI[playerid][pKod]); if(strcmp(inputt...
434
The code we both provided above will check if pKod and inputtext are the same, or technically if pKod string exists within inputtext. Replace your code: Код: if(strfind(inputtext) == PI[playerid]...
434
That is not how you use strfind, see below example: https://sampwiki.blast.hk/wiki/Strfind Код: if(strfind("Are you in here?", "you", true) != -1) //returns 4, because the start of 'you' (y) is at...
434
There is a problem with the query to insert the account, see this line: Код: mysql_format(mysql, query, sizeof(query), "INSERT INTO accounts (Name, Password, IP, Admin, VIP, Money, Group, GroupRa...
388
Your OnGameModeInit code as it is now will not work as you are using the threaded query version of MySQL, you can't use the cache in the same callback as where you send the query. Try this: Код: ...
382
Are you trying to load all the houses at once, or one at a time?
382
Quote: Originally Posted by Kraeror The parameters are: I think my parameters are correct! I added a check and it fixed all! Thank you brother!!! PS: I'm still learning MySQL, because I w...
382
The problem appears to be your LoadHouses callback. Please check the syntax/parameters of cache_get_value_name_float, the first parameter is the row number, you are using houseid, this is likely resul...
382
You should check that the file (connections.pwn & time.pwn) and folder (definitely functions with an 's'?) names are spelled correctly.
280
Are you receiving any errors when you compile? Or are you just not able to use these functions?
280
Are you receiving any errors in the MySQL log? Is the connection you are attempting to make being successful?
388
It works fine for me, does your code look similar to this: gamemodes - gamemode.pwn Код: #include "functions.pwn" gamemodes - functions.pwn Код: #include "functions/function_one.pwn" gamemodes...
280
https://sampwiki.blast.hk/wiki/Function:...erControllable Use TogglePlayerControllable(playerid, 1); to allow the player control, or TogglePlayerControllable(playerid, 0); to disable control.
164