SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 494
Search took 0.01 seconds.
Search: Posts Made By: KamilPolska
Forum: Scripting Help 05/07/2020, 05:39 PM
Replies: 10
Views: 393
Posted By KamilPolska
Re: Help /admins

Did not works. All the time it shows that there is no administrator.
Forum: Scripting Help 28/06/2020, 05:55 PM
Replies: 10
Views: 393
Posted By KamilPolska
Re: Help /admins

Is this the best way?

#include "a_samp"
#include "Pawn.CMD"

main(){}

new Admin[MAX_PLAYERS];
new SemiAdminLVL[MAX_PLAYERS];
Forum: Scripting Help 28/06/2020, 01:28 PM
Replies: 10
Views: 393
Posted By KamilPolska
Re: Help /admins

After entering the /semi1 command in /admins, it displays that there is no administrator. After entering /rank1 it is displayed in the dialogue that I am the administrator. Why after entering /semi1...
Forum: Scripting Help 27/06/2020, 03:31 PM
Replies: 10
Views: 393
Posted By KamilPolska
Help /admins

Hi. I don't remember how you could do it that the administrators show up in the window. I have made the PlayerInfo[playerid][pRank] variable.

https://imgur.com/Ist2x6k.png
Forum: Scripting Help 27/06/2020, 03:06 PM
Replies: 21
Views: 467
Posted By KamilPolska
Re: Problem houses

I understand a little. I just don't know how it will look in practice, i.s. the code. :D
Forum: Scripting Help 27/06/2020, 12:49 PM
Replies: 21
Views: 467
Posted By KamilPolska
Re: Problem houses

Anyone answer my question?
Forum: Scripting Help 25/06/2020, 06:07 PM
Replies: 21
Views: 467
Posted By KamilPolska
Re: Problem houses

Hm ... understand. I would need some PAWN tutorial about MySQL. I have been struggling with this MySQL ID and script for a year. I have heard from a person that AUTO_INCREMENT is not worth using in...
Forum: Scripting Help 25/06/2020, 04:34 PM
Replies: 21
Views: 467
Posted By KamilPolska
Re: Problem houses

I understand well. If I have a problem with houses, I will write in this topic. Thank you for your help.
Forum: Scripting Help 25/06/2020, 04:19 PM
Replies: 21
Views: 467
Posted By KamilPolska
Re: Problem houses

I did and it works well. What I did as you told me is optimal? I think you understood me what I wrote.
Forum: Scripting Help 25/06/2020, 04:02 PM
Replies: 21
Views: 467
Posted By KamilPolska
Re: Problem houses

It works. Couldn't it be better to start with ID 1 and not with ID 0?
Forum: Scripting Help 25/06/2020, 03:35 PM
Replies: 21
Views: 467
Posted By KamilPolska
Re: Problem houses

I still have this problem.. Anyone got any idea?
Forum: Scripting Help 24/06/2020, 12:08 PM
Replies: 21
Views: 467
Posted By KamilPolska
Re: Problem houses

Now I have that when I create houses I have ID 0, 1, 2, 3 and after resetting the server I have houses with ID 1, 2, 3, 4 and I create the next 3 houses I have ID 0, 5 and 6. Why ID 0 and not ID 5?...
Forum: Scripting Help 23/06/2020, 11:20 PM
Replies: 21
Views: 467
Posted By KamilPolska
Re: Problem houses

Maybe I will show differently on the screens.

Code: https://pastebin.com/udvzDuNw

After creating the houses:
ID: 0, 1, 2.
https://imgur.com/mZ8vBqE.png

I restarted the server and the...
Forum: Scripting Help 13/06/2020, 07:05 PM
Replies: 21
Views: 467
Posted By KamilPolska
Re: Problem houses

I understand. Wouldn't it be better to add id++ without using AUTO_INCREMENT with MySQL?


I did. After loading, the houses have ID 0. After creation, a house with ID 0 and 7 is created.
Forum: Scripting Help 13/06/2020, 03:57 PM
Replies: 21
Views: 467
Posted By KamilPolska
Problem houses

I have a problem with house ID. When I create a house with ID 0, 1, 2, 3. After restarting the houses, the houses were loaded with ID 1, 2, 3, 4. Why? Once again, I created more houses, I create ID 4...
Forum: Scripting Help 13/06/2020, 10:18 AM
Replies: 6
Views: 191
Posted By KamilPolska
Re: Problem pSlot

Well. I understood a little. How will buying slots look like, i.e. enlarging the slot after purchase.

Code: https://pastebin.com/jj07VDK4
Forum: Scripting Help 13/06/2020, 08:32 AM
Replies: 6
Views: 191
Posted By KamilPolska
Re: Problem pSlot

Is there any other way? I heard that you can use pCars[MAX_SLOTS] and pCarSlots when loading.
Forum: Scripting Help 31/05/2020, 09:24 PM
Replies: 6
Views: 191
Posted By KamilPolska
Re: Problem pSlot

Yes, but I will have to create columns named VehSlot1, VehSlot2 and so on, right?
Forum: Scripting Help 15/05/2020, 06:58 PM
Replies: 6
Views: 191
Posted By KamilPolska
Problem pSlot

Hello. I make vehicle slots for the player. I don't remember how it was possible to do it when the MySQL pSlot database is set to 4 and the player has 4 free slots. How can this be done to check the...
Forum: Scripting Help 14/05/2020, 06:02 PM
Replies: 14
Views: 269
Posted By KamilPolska
Re: Problem mysql

Yes, but the error "[debug] #0 0000bc78 in GetVehicleName (modelid = 0)" disappeared
Forum: Scripting Help 14/05/2020, 04:19 PM
Replies: 14
Views: 269
Posted By KamilPolska
Re: Problem mysql

Now I have such errors. Could it be caused by Foreach?

[debug] Run time error 4: "Array index out of bounds"
[debug] Attempted to read/write array element at negative index -400
[debug] AMX...
Forum: Scripting Help 13/05/2020, 12:38 AM
Replies: 5
Views: 150
Posted By KamilPolska
Re: GangZone not working

This code works...

https://imgur.com/5lVJWya.png
Forum: Scripting Help 12/05/2020, 11:36 PM
Replies: 14
Views: 269
Posted By KamilPolska
Re: Problem mysql

Works well. I just don't understand why it doesn't work for me SaveVehicle is also useful to save everything the same as with OnPlayerDisconnect or OnGameModeExit..
Forum: Scripting Help 12/05/2020, 10:14 PM
Replies: 14
Views: 269
Posted By KamilPolska
Re: Problem mysql

Anyone know how to solve this problem? I have done this for a long time and forgot
Forum: Scripting Help 12/05/2020, 06:46 PM
Replies: 14
Views: 269
Posted By KamilPolska
Re: Problem mysql

The loaded function looks like this.

//OnGameModeInit
mysql_tquery(SQL, "SELECT * FROM privcars", "LoadDynamicVehicles");

FuncPub:LoadDynamicVehicles()
{
new rows = cache_num_rows();
...
Showing results 1 to 25 of 494

 

All times are GMT. The time now is 08:57 PM.


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