SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 25
Search took 0.00 seconds.
Search: Posts Made By: KinxpIn
Forum: Scripting Help 21/05/2019, 10:22 PM
Replies: 8
Views: 238
Posted By KinxpIn
Re: How to grouping? 10 pcs equals 1 box

Ohhhh.... that's very useful... Thank you guys for the solution :)
Forum: Scripting Help 21/05/2019, 03:13 PM
Replies: 8
Views: 238
Posted By KinxpIn
Re: How to grouping? 10 pcs equals 1 box

So,

CratePoints[0][CrateStock] += PlayerInfo[playerid][pWheat][0] / 10;

???

That means I have to limit if players want to sell carrots, at least 10 seeds must be in order for the crater...
Forum: Scripting Help 21/05/2019, 02:25 PM
Replies: 8
Views: 238
Posted By KinxpIn
Re: How to grouping? 10 pcs equals 1 box

You don't know what I mean right? Try reading again :(
Forum: Scripting Help 21/05/2019, 07:11 AM
Replies: 8
Views: 238
Posted By KinxpIn
Forum: Scripting Help 21/05/2019, 12:45 AM
Replies: 8
Views: 238
Posted By KinxpIn
Re: How to grouping? 10 pcs equals 1 box

//enum data:

enum E_CratePoint
{
Float: crateX,
Float: crateY,
Float: crateZ,
CrateStock,
Text3D: cratepointText
//CratePointID
Forum: Scripting Help 21/05/2019, 12:42 AM
Replies: 8
Views: 238
Posted By KinxpIn
How to grouping? 10 pcs equals 1 box

In this post, I want to ask something.
So, I'm confused how to do "Grouping".
I mean for example I sell 20 carrots to the warehouse. 10 carrots are 1 box. So in the warehouse there will be 2 Crates...
Forum: Scripting Help 19/05/2019, 03:59 PM
Replies: 3
Views: 208
Posted By KinxpIn
Re: If you fix this you are a hero.

Check mysql.log
in your server/logs/plugins/mysql.log

and paste it here
Forum: Scripting Help 19/05/2019, 10:46 AM
Replies: 4
Views: 161
Posted By KinxpIn
Re: Run time error 4: "Array index out of bounds"

This enum is for player vehicle, max player vehicles is only 5... :(
Forum: Scripting Help 19/05/2019, 02:31 AM
Replies: 4
Views: 161
Posted By KinxpIn
Forum: Scripting Help 19/05/2019, 01:25 AM
Replies: 4
Views: 161
Posted By KinxpIn
Re: Run time error 4: "Array index out of bounds"

Additional:

enum pvInfo
{
//blablablabla
pvMaxCrates,
pvCrates
};
new PlayerVehicleInfo[MAX_PLAYERS+1][MAX_PLAYERVEHICLES][pvInfo];
Forum: Scripting Help 19/05/2019, 01:23 AM
Replies: 4
Views: 161
Posted By KinxpIn
Run time error 4: "Array index out of bounds"

We just go to the problem, I make the command /storecrate, when I use it I get an error at server_log.txt containing:

[00:15:28] [zcmd] [B.G]: /storecrate
[00:15:28] [debug] Run time error 4:...
Forum: Scripting Help 14/05/2019, 03:02 PM
Replies: 3
Views: 177
Posted By KinxpIn
Re: Need Help.!

Check mysql.log and error.log
maybe there is something
Forum: Scripting Help 14/05/2019, 02:48 PM
Replies: 8
Views: 184
Posted By KinxpIn
Re: BUG OnGameModeExit

Solved. Thank you for the answers and solutions from all of you
This is my GMX command:

CMD:gmx(playerid, params[])
{
if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] >= 10)
...
Forum: Scripting Help 14/05/2019, 02:43 PM
Replies: 8
Views: 184
Posted By KinxpIn
Re: BUG OnGameModeExit

The point is this problem has been resolved in this way :). But if the relog system is not used, the error will still appear as before
Forum: Scripting Help 14/05/2019, 02:41 PM
Replies: 8
Views: 184
Posted By KinxpIn
Re: BUG OnGameModeExit

It's saving but wrong position. (maybe 0,0,0)

Ok, so I have fixed this problem by making /gmx command with the relog system (banip & unbanip) before calling OnGameModeExit. so the data from the...
Forum: Scripting Help 14/05/2019, 01:06 AM
Replies: 8
Views: 184
Posted By KinxpIn
Re: BUG OnGameModeExit

PS: No error log in MySQL, server_log, or Crashdetect. there works as usual
Forum: Scripting Help 14/05/2019, 12:59 AM
Replies: 8
Views: 184
Posted By KinxpIn
BUG OnGameModeExit

Okay, so this is the problem.

Inside my GM, When OnGameModeExit runs, it will call OnPlayerDisconnect, now there is a saving system for the player's data&position in OnPlayerDisconnect.

When...
Forum: Scripting Help 11/05/2019, 12:25 AM
Replies: 1
Views: 111
Posted By KinxpIn
[debug] Server crashed while executing HLRPEjo.amx

Need a solution :'(

server_log.txt
[debug] Server crashed while executing HLRPEjo.amx

error.log
[23:04:53] [log-core] signal 11 (SIGSEGV) catched; shutting log-core down (errno: 0, signal...
Forum: Scripting Help 21/03/2019, 10:07 AM
Replies: 3
Views: 171
Posted By KinxpIn
Re: [HELP] Death Bug

oh, thank you for the solution ... :D
I have solved this problem ... the solution is just removing setplayerhealth 0x7fffff
Forum: Scripting Help 21/03/2019, 08:30 AM
Replies: 3
Views: 171
Posted By KinxpIn
Forum: Scripting Help 21/03/2019, 07:10 AM
Replies: 3
Views: 171
Posted By KinxpIn
Post [HELP] Death Bug

So, I want to make after the player dies, will return to the position where he died with injured status. But what happens instead is that the player is sent to the blueberry chord, and sends "You're...
Forum: Scripting Help 31/12/2018, 06:41 PM
Replies: 4
Views: 246
Posted By KinxpIn
Re: undefined symbol.

But, in this case isn't it if "fname = CheckPlayerFactName(playerid);"
The fname should match the faction name right? (SAPD, SAMD, etc)

I can just use "if", but I'm trying to use the "switch"...
Forum: Scripting Help 31/12/2018, 06:14 PM
Replies: 4
Views: 246
Posted By KinxpIn
Forum: Scripting Help 31/12/2018, 06:09 PM
Replies: 4
Views: 246
Posted By KinxpIn
undefined symbol.

guys... what's wrong with this code? :3


CheckPlayerFactName(playerid)
{
new fact = pInfo[playerid][pFaction];
new none, SAPD, SAMD, SANA, SAGS;
if(fact < 1)
{
return none;
Forum: Scripting Help 31/12/2018, 04:59 PM
Replies: 11
Views: 549
Posted By KinxpIn
Re: MySQL Errors

Why you insert this?

`customRank`= '''
`customTag`= ''

if you don't wanna fill customRank, customTag etc, just leave it (don't insert in your mysql_format)
Showing results 1 to 25 of 25

 

All times are GMT. The time now is 03:23 AM.


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