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: Joe Staff
Forum: Scripting Help 29/01/2020, 06:56 PM
Replies: 4
Views: 164
Posted By Joe Staff
Re: Converting to lower case errors

Is there not a "tolower" method that you can call?
Forum: Scripting Help 10/01/2020, 07:51 PM
Replies: 10
Views: 328
Posted By Joe Staff
Re: Updating 3D text label makes it dissapear

You could set the timer to not repeat, and then recreate the timer at the bottom each time it repeats.
Forum: Scripting Help 10/01/2020, 07:35 PM
Replies: 14
Views: 322
Posted By Joe Staff
Re: HELP WITH MYSQL TEMP BAN

Also make sure you're unbanning the IP from the samp server.
Just because it was removed from the database, does not mean they're unbanned.
Forum: Scripting Help 07/01/2020, 04:44 PM
Replies: 2
Views: 154
Posted By Joe Staff
Re: Vehicle tires aren't bulletproof for some reason

I'm curious if OnVehicleDamageStatusUpdate is only called when the vehicle actually loses health. When a vehicles tire pops, it doesn't necessarily mean that the vehicle lost health.
Try ramming the...
Forum: Scripting Help 21/12/2019, 03:14 PM
Replies: 11
Views: 383
Posted By Joe Staff
Re: staff command is wrongfully coded, shows only 1 admin instead of more...

If you're not too familiar with format, you can learn some stuff on the samp wiki here: https://wiki.sa-mp.com/wiki/Format
Some of my favorite uses are for decimal values.
Forum: Scripting Help 19/12/2019, 06:33 PM
Replies: 5
Views: 174
Posted By Joe Staff
Re: stats command error...

As the warning states, the variable 'admin' is just never used. You could replace all of the 'PlayerInfo[id][AdminLevel]' with 'admin' or just remove the line ' admin = PlayerInfo[id][AdminLevel], '...
Forum: Scripting Help 16/12/2019, 04:23 PM
Replies: 4
Views: 201
Posted By Joe Staff
Re: problem with strins

You're placing the hex code in before your @ character. So when it hits the @, it adds the hex code before, sending the @ further down the string, so then it comes across it again over and over.

I...
Forum: Scripting Help 16/12/2019, 12:48 AM
Replies: 4
Views: 182
Posted By Joe Staff
Re: Maximum Number for For Loop

Well since you haven't posted any code, I can only assume you're creating or modifying objects. The for loop does not have a limit, but objects do, hence the 'MAX_OBJECTS' defined value.
Forum: Scripting Help 16/12/2019, 12:06 AM
Replies: 4
Views: 182
Posted By Joe Staff
Re: Maximum Number for For Loop

For loops can be infinite, what's causing the crash is what you're using with it.
Forum: Scripting Help 15/12/2019, 01:37 PM
Replies: 8
Views: 328
Posted By Joe Staff
Re: weapon-config problem

Line 5870: make sure when 'heal' is being initialized, it's being initialized as a float.

new float:heal;
Forum: Scripting Help 14/12/2019, 11:42 PM
Replies: 7
Views: 226
Posted By Joe Staff
Re: [SQLite] Invalid Result Given

Print the string to console and check the log, see that the SQL code being ran is correct.
Forum: Scripting Help 14/12/2019, 11:14 PM
Replies: 7
Views: 226
Posted By Joe Staff
Re: [SQLite] Invalid Result Given

stock ApagarPlayerClan(playerid)
{
new Query[100];
format(Query, sizeof(Query), "DELETE FROM `ServerClan` WHERE `clanNome` = %s", GetPClan(playerid));
db_query(gAccounts, Query);
}
Forum: Scripting Help 14/12/2019, 08:39 PM
Replies: 7
Views: 226
Posted By Joe Staff
Re: [SQLite] Invalid Result Given

I'm guessing because the query doesn't contain any resulting information and doesn't need to be freed.
Forum: Scripting Help 12/12/2019, 06:05 AM
Replies: 3
Views: 242
Posted By Joe Staff
Re: [SQLite] Sorting

A quick search pulled this up: https://www.sqlitetutorial.net/sqlite-order-by/

Select name, score from table order by score desc
Forum: Scripting Help 12/12/2019, 06:01 AM
Replies: 3
Views: 192
Posted By Joe Staff
Re: My /respawncars respawn used vehicles too...

You'll need to show us 'RespawnNearbyVehicles'
Forum: Scripting Help 12/12/2019, 05:34 AM
Replies: 8
Views: 297
Posted By Joe Staff
Re: My server crash with mysql

I remember some time ago having issues with connections sticking. I had to have a timer run every minute or so to run some arbitrary query to keep the connection going
Forum: Scripting Help 11/12/2019, 03:50 PM
Replies: 8
Views: 297
Posted By Joe Staff
Re: My server crash with mysql

Do you know which table/row that it's reading from during the crash? It might be receiving a bill when it's expecting an integer, or something like that.
Forum: Scripting Help 03/12/2019, 05:30 PM
Replies: 34
Views: 807
Posted By Joe Staff
Re: Online time money

No, that timer is just an increment of 1 minute. If you want to adjust the rate of which your admins get paid, you have to change the amount here:

if(PlayingMinutes[i] == 30)
Forum: Scripting Help 03/12/2019, 04:45 PM
Replies: 34
Views: 807
Posted By Joe Staff
Re: Online time money

I see, I hadn't noticed where the error actually was. Under OnPlayerDisconnect, 'i' doesn't exist, but 'playerid' is what you're looking for there.
Forum: Scripting Help 03/12/2019, 04:37 PM
Replies: 14
Views: 660
Posted By Joe Staff
Re: Fetch offline and online players

Is it beneficial to have the user table not be connected to the faction system? Or is this just an assumption of a pre existing Table, so as to not require changes?
Forum: Scripting Help 03/12/2019, 04:35 PM
Replies: 34
Views: 807
Posted By Joe Staff
Re: Online time money

As stated earlier, because you changed the for variable to 'm', you have to set those used of 'i' to 'm'
Forum: Scripting Help 03/12/2019, 04:33 PM
Replies: 3
Views: 164
Posted By Joe Staff
Re: HELP MYSQL ERROR Please

Then either add the armour column to your entry, or set the armour default value in the Db to 0.0
Forum: Scripting Help 03/12/2019, 04:31 PM
Replies: 34
Views: 807
Posted By Joe Staff
Re: Online time money

Show us lines around 260
Forum: Scripting Help 03/12/2019, 03:11 PM
Replies: 34
Views: 807
Posted By Joe Staff
Re: Online time money

if(pInfo[playerid][AdminLevel]

Change playerid to 'm' in this case.
Since you've changed the variable to m, you'll need to make sure all of the instances of 'i' in the code provided to changed...
Forum: Scripting Help 03/12/2019, 03:03 PM
Replies: 14
Views: 660
Posted By Joe Staff
Re: Fetch offline and online players

If you don't mind me asking, why would he have 3 tables (factions, member/faction association, members) instead of just 2 tables (factions, members including faction Id)?
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 11:34 PM.


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