SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: Symon
Forum: Scripting Help 30/03/2020, 08:41 AM
Replies: 4
Views: 49
Posted By Symon
Re: Spawn being in car

TogglePlayerSpectating to hide them.
Forum: Scripting Help 29/03/2020, 06:21 PM
Replies: 20
Views: 202
Posted By Symon
Re: Problem interior

Excuse me, an off topic question. Which MySQL database viewer are you using? Isn't phpMyAdmin?
Forum: Scripting Help 29/03/2020, 09:00 AM
Replies: 10
Views: 165
Posted By Symon
Re: [HELP] Pls Help

sudo apt-get install libstdc++6
Forum: Scripting Help 28/03/2020, 09:16 PM
Replies: 4
Views: 64
Posted By Symon
Forum: Scripting Help 28/03/2020, 09:14 PM
Replies: 5
Views: 79
Posted By Symon
Re: Problem with /casa (search your houses)

If the first house is ID 1 in your database but in your command/dialog start from 0, then there's a problem as IDs doesn't match.
Forum: Scripting Help 28/03/2020, 09:11 PM
Replies: 4
Views: 64
Posted By Symon
Re: Locate the closest specific vehicle

There you go:


stock GetClosestVehicleModel(playerid, id)
{
new closest = -1, Float: closestDist = 8000.00, Float: distance, Float: pX, Float: pY, Float: pZ;

GetPlayerPos(playerid, pX,...
Forum: Scripting Help 28/03/2020, 09:09 PM
Replies: 6
Views: 108
Posted By Symon
Re: Anti vehicle repair hack

You have to take in consideration Pay 'n' Spray too as it sets vehicle health to 1000 after respraying.
Forum: Scripting Help 28/03/2020, 08:51 PM
Replies: 16
Views: 159
Posted By Symon
Re: MySQL R39-6 reading data from a row

Add me on Discord if you need further help. I'll try to help you out as much as i can.
Forum: Scripting Help 28/03/2020, 08:42 PM
Replies: 16
Views: 159
Posted By Symon
Re: MySQL R39-6 reading data from a row

Ok, there you go:

https://pastebin.com/AiQBqYzc

Some considerations:

1) Health and armour are floats, not integers.

player_health and player_armour must be set as FLOAT in database.
Forum: Scripting Help 28/03/2020, 07:52 PM
Replies: 16
Views: 159
Posted By Symon
Re: MySQL R39-6 reading data from a row

Ok, do me a favour. Upload only registration and login part (including dialogs) instead of whole gamemode.

I'll try to help you as much as i can.
Forum: Scripting Help 28/03/2020, 07:40 PM
Replies: 16
Views: 159
Posted By Symon
Re: MySQL R39-6 reading data from a row

Excuse me but whole code doesn't make any sense. Don't take it as an offense but i clearly don't understand the reason to reset everything to 0 (including the password), also i don't see any password...
Forum: Scripting Help 28/03/2020, 07:31 PM
Replies: 16
Views: 159
Posted By Symon
Re: MySQL R39-6 reading data from a row

Can you post the LoggingIn function?
Forum: Scripting Help 28/03/2020, 07:28 PM
Replies: 16
Views: 159
Posted By Symon
Re: MySQL R39-6 reading data from a row

You reset them but after you load them again using LoggingIn, how this won't work?

Oh, my bad. Well, in the LogginIn function, assegn each value to the correct one.
Forum: Scripting Help 28/03/2020, 07:24 PM
Replies: 16
Views: 159
Posted By Symon
Re: MySQL R39-6 reading data from a row

GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
Forum: Scripting Help 28/03/2020, 11:57 AM
Replies: 8
Views: 152
Posted By Symon
Re: Identifiers ID

That's what i was talking about.
Forum: Scripting Help 28/03/2020, 09:59 AM
Replies: 8
Views: 152
Posted By Symon
Re: Identifiers ID

You can use AUTO_INCREMENTfor everything you need. For houses, vehicles, players accounts and so on.
Forum: Scripting Help 27/03/2020, 12:37 PM
Replies: 5
Views: 116
Posted By Symon
Re: Help For Top Player Mysql R41+

Which saving system are you using? Give us more info.
Forum: Scripting Help 27/03/2020, 10:42 AM
Replies: 2
Views: 48
Posted By Symon
Re: Issue on creating DynamicObject using y_hooks

You don't have to hook anything if you're just adding objects (AFAIK).

All you have to do is create a map file which contains all objets (i'd call maps.pwn).

In that file create a function like...
Forum: Scripting Help 27/03/2020, 10:37 AM
Replies: 3
Views: 60
Posted By Symon
Re: Error

There is no a_mysql-R39-3. Correct name is a_mysql.
Forum: Screenshots and Videos 26/03/2020, 06:24 PM
Replies: 6
Views: 320
Posted By Symon
Re: Make San Andreas pretty again: Sun, grass and drawdistance mods

That's a good view for eyes for sure, unlucky i can't use those effects without making explode my potato PC.
Forum: Discussion 26/03/2020, 06:22 PM
Replies: 2
Views: 81
Posted By Symon
Re: Hello, I need somehelp

Yes, if your garage is meant to store player's vehicle, then retrieve it and check it.

Using the GetClosestVehicle will just retrieve closest vehicle model near the player.
Forum: Scripting Help 26/03/2020, 06:20 PM
Replies: 18
Views: 193
Posted By Symon
Re: Faction System

Well you create that table the same way you created the rest for the faction system. Open PhpMyAdmin, select your database and create the table there.
Forum: Scripting Help 26/03/2020, 06:16 PM
Replies: 5
Views: 67
Posted By Symon
Re: Help Mysql Problem

Remove "Created house" from the query and assign a default value in your houses table.

Same goes for the INSERT query above, use default values and save only what you need. Let MySQL handle the...
Forum: Scripting Help 26/03/2020, 06:12 PM
Replies: 3
Views: 49
Posted By Symon
Re: heisst

You could also declare it outside the array:


new randomBank = 50000+random(50000);


Then use randomBank inside the array.
Forum: Scripting Help 26/03/2020, 06:10 PM
Replies: 18
Views: 193
Posted By Symon
Re: Faction System

The error is clear:



Create the organizacije table.
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 12:55 AM.


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