SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.03 seconds.
Search: Posts Made By: Konstantinos
Forum: Scripting Help 28/12/2017, 06:19 PM
Replies: 4
Views: 404
Posted By Konstantinos
Re: Mysql Related Error

http://forum.sa-mp.com/showpost.php?p=3970335&postcount=5



You later got an error about the libmysqlclient, either install the correct libraries or use a static version. Otherwise, you'd have...
Forum: Scripting Help 28/12/2017, 06:16 PM
Replies: 4
Views: 507
Posted By Konstantinos
Re: Server crashes when player connects

https://github.com/Zeex/samp-plugin-crashdetect/wiki/Compiling-scripts-with-debug-info

Do the steps above, re-compile and start the server. Connect and wait for the new logs. It's probably either...
Forum: Scripting Help 27/12/2017, 02:09 PM
Replies: 6
Views: 561
Posted By Konstantinos
Re: cannot read from file

http://forum.sa-mp.com/showpost.php?p=3971232&postcount=4
Forum: Scripting Help 25/12/2017, 01:06 PM
Replies: 6
Views: 1,036
Posted By Konstantinos
Re: Loading a string with y_ini

isnull is already defined in YSI so don't re-define it in your script. There might be an include that re-defines it though so if there is, you can remove that line.

As for the warning, ****** did...
Forum: Scripting Help 25/12/2017, 09:59 AM
Replies: 6
Views: 1,036
Posted By Konstantinos
Re: Loading a string with y_ini

Nothing, I just linked you so you can see that it uses format instead of valstr to avoid the crash. It seems like it cannot read correctly so:

Re-download ysi 4...
Forum: Scripting Help 24/12/2017, 09:02 PM
Replies: 6
Views: 1,036
Posted By Konstantinos
Re: Loading a string with y_ini

VIPTIME in enumerator is integer and not a string; thus the error. The solution is simple - update to latest version of YSI 4 and use INI_WriteInt function.

valstr crashes on high numbers but it...
Forum: Scripting Help 24/12/2017, 09:09 AM
Replies: 1
Views: 608
Posted By Konstantinos
Re: About y_iterate

Iter_Init should be called once when the mode starts (in OnGameModeInit/OnFilterScriptInit). If you use the latest version of YSI 4, a player can belong to only 1 job so you can use the optimized...
Forum: Scripting Help 23/12/2017, 09:43 AM
Replies: 7
Views: 723
Posted By Konstantinos
Re: [zCMD] Array index out of bonus

http://forum.sa-mp.com/showpost.php?p=2232010&postcount=480
http://forum.sa-mp.com/showpost.php?p=2233511&postcount=482
Forum: Scripting Help 23/12/2017, 09:39 AM
Replies: 30
Views: 1,918
Posted By Konstantinos
Re: Runtime Error 19!

You haven't re-compiled all scripts that use streamer yet. Take a closer look:

plugin version 2.8.2 and include version 2.6.1 - they do not match. Neither you tried to downgrade mysql as being...
Forum: Scripting Help 23/12/2017, 09:13 AM
Replies: 30
Views: 1,918
Posted By Konstantinos
Re: Runtime Error 19!

Now you should follow Ritzy's advice to re-compile all scripts that use streamer to fix this problem.
Forum: Scripting Help 23/12/2017, 09:01 AM
Replies: 30
Views: 1,918
Posted By Konstantinos
Re: Runtime Error 19!

He has loaded nativechecker as the last plugin and he did not received a warning about version mismatch so the problem is clear here. The versions he had loaded are not correct.

Streamer version...
Forum: Scripting Help 22/12/2017, 09:57 AM
Replies: 8
Views: 447
Posted By Konstantinos
Re: Faction Cars = Server Log problems

I didn't notice this earlier, change this line from the code inside the loop:
if (PlayerInfo[i][team] != TEAM_LSDOS)

to:

if (PlayerInfo[playerid][team] != TEAM_LSDOS)
Forum: Scripting Help 21/12/2017, 09:21 AM
Replies: 8
Views: 447
Posted By Konstantinos
Re: Faction Cars = Server Log problems

Don't use numbers like this as it causes more problems in the long run. Use sizeof operator. You also forgot to close a bracket on the first loop.


for (new i = 0; i < sizeof GSFcar; i++)
{
...
Forum: Scripting Help 20/12/2017, 05:17 PM
Replies: 7
Views: 385
Posted By Konstantinos
Re: Want to ask

While OneDay's solution allows multiple letters to be used at once, for a simpler way of just M/K (or m/k) at the end, you can use custom sscanf specifier as well:

SSCANF:money(k_string[])
{
...
Forum: Scripting Help 20/12/2017, 03:16 PM
Replies: 16
Views: 670
Posted By Konstantinos
Re: Impossible to save stats

Except the missing single quote that gave syntax error after modifying it, the query itself is working. The problem of not updating the database is that you never assign the new value to the...
Forum: Scripting Help 20/12/2017, 03:08 PM
Replies: 2
Views: 239
Posted By Konstantinos
Re: Error Command

CMD:thaluoi(playerid, params[])
{
if (!IsABoat(GetPlayerVehicleID(playerid)))
{
if (PlayerInfo[playerid][pLuoica] >= 1)
{
PlayerInfo[playerid][pLuoica] -= 1;...
Forum: Scripting Help 20/12/2017, 03:01 PM
Replies: 16
Views: 670
Posted By Konstantinos
Re: Impossible to save stats

UpdatePlayerData uses Player[playerid][Skin_Player] and Player[playerid][Cash] in mysql_format which are both 0 because you didn't set any value in /setskin or /givemoney commands before calling the...
Forum: Scripting Help 20/12/2017, 02:51 PM
Replies: 16
Views: 670
Posted By Konstantinos
Re: Impossible to save stats

"UPDATE `players` SET `skin_player` = '%d', `cash` = '%d' WHERE `id` = '%d' LIMIT 1"


Wrap the values inside ' ' when using strings. Integers and floating-point numbers are unnecessary. Also if...
Forum: Scripting Help 18/12/2017, 07:56 PM
Replies: 2
Views: 557
Posted By Konstantinos
Re: YSI: redifinition of constant/macro

YSI hooks the function correctly so the problem is in another include that defines these four vehicle functions and just reports the first include found. I've seen many complains about those includes...
Forum: Scripting Help 18/12/2017, 02:39 PM
Replies: 4
Views: 336
Posted By Konstantinos
Re: MAX_PlAYERS_NAME. New

A string (array) should have a constant size to store any data (text). A player's name can be up to 24 characters and so is defined. However, you will receive an error for rejected nickname if length...
Forum: Scripting Help 17/12/2017, 10:43 AM
Replies: 6
Views: 415
Posted By Konstantinos
Re: Score Messages

Your operators are wrong. < is smaller so the else statement would not be low score but greater instead.

http://wiki.sa-mp.com/wiki/Control_Structures#Operators

As for the multiple messages,...
Forum: Scripting Help 16/12/2017, 08:37 PM
Replies: 1
Views: 278
Posted By Konstantinos
Re: mysql doesnt insert information in sql

Error in syntax.
"UPDATE `mafijosammo` SET GpAmmoAK = '%d',GpAmmoDeagle = '%d',GpAmmoShotgun = '%d',GpAmmoAWP = '%d';"


Always check mysql debug/log if something is not inserted/updated. A...
Forum: Scripting Help 16/12/2017, 07:56 PM
Replies: 4
Views: 384
Posted By Konstantinos
Re: help with a cmd

http://wiki.sa-mp.com/wiki/GetPlayerPoolSize
http://wiki.sa-mp.com/wiki/GetPlayerVehicleID
http://wiki.sa-mp.com/wiki/IsPlayerInVehicle

You should at least try. I'll just give you the core:
...
Forum: Scripting Help 16/12/2017, 07:46 PM
Replies: 4
Views: 384
Posted By Konstantinos
Re: help with a cmd

Step 1: Check if player in vehicle and store the vehicleid.
Step 2: A player-loop.
Step 3: Check if the value of the loop is in the same vehicle: IsPlayerInVehicle or if GetPlayerVehicleID matches....
Forum: Scripting Help 16/12/2017, 09:59 AM
Replies: 9
Views: 769
Posted By Konstantinos
Re: Array index out of bonus

Is the version of the crashdetect plugin you have loaded an old one? It is apparently off (the line reported) and neither does print the index accessed/upper bound. Try to update to the latest...
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 11:05 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.