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: BleverCastard
Forum: Scripting Help 16/08/2016, 08:40 PM
Replies: 22
Views: 1,114
Posted By BleverCastard
Re: Database

And if you took your time to read my reply, you'll find your mistake.

"but there are others plugins that you will need to use in order to enhance your script."
Forum: Scripting Help 16/08/2016, 06:21 PM
Replies: 5
Views: 357
Posted By BleverCastard
Re: I have a MySQL problem

Does the dialog box show when you connect?

If not, it's a connection issue to the database. Double-check your user/pass and database name.
Forum: Scripting Help 16/08/2016, 06:01 PM
Replies: 5
Views: 357
Posted By BleverCastard
Re: I have a MySQL problem

Check the console. Does it connect correctly? Is the username and password correct?
Forum: Scripting Help 16/08/2016, 05:57 PM
Replies: 22
Views: 1,114
Posted By BleverCastard
Re: Database

sscanf, streamer, whirlpool, etc...



That's correct, it'll allow your script/server connect to the MySQL database.
Forum: Scripting Help 16/08/2016, 03:46 PM
Replies: 22
Views: 1,114
Posted By BleverCastard
Re: Database

Not for MySQL, but there are others plugins that you will need to use in order to enhance your script.
Forum: Scripting Help 16/08/2016, 03:06 PM
Replies: 22
Views: 1,114
Posted By BleverCastard
Re: Database

"REL" means it's a release.
About it being easy, everyone learns at their own pace and in their own way. Try it out for yourself.
Forum: Everything and Nothing 02/02/2016, 04:00 PM
Replies: 7
Views: 1,137
Posted By BleverCastard
Re: SA-MP Keeps freezing

Re-install the game before going about doing something drastic.
Forum: Everything and Nothing 15/09/2015, 01:54 PM
Replies: 28
Views: 2,203
Posted By BleverCastard
Re: What are good ways to start coding/designing websites...?

Bootstrap is amazing for new coders.



This is also a "must-have" addon with Bootstrap.



Or you can youtube "HowCode" and "CodeCourse". They have pretty neat tutorials and explains the...
Forum: Scripting Help 11/09/2015, 02:13 PM
Replies: 3
Views: 303
Posted By BleverCastard
Forum: Scripting Help 10/09/2015, 03:32 PM
Replies: 10
Views: 611
Posted By BleverCastard
Forum: Scripting Help 10/09/2015, 03:16 PM
Replies: 8
Views: 531
Posted By BleverCastard
Re: HELP - saving name in database

These are (enum)urators. (http://forum.sa-mp.com/showthread.php?t=318307)

As for just loading one value.
When they enter a business(/enter) loop through the businesses, IsInBusiness[playerid] =...
Forum: Scripting Help 10/09/2015, 03:00 PM
Replies: 8
Views: 531
Posted By BleverCastard
Re: HELP - saving name in database

You don't use enums? Are you sure?

1) Lag. Think about it. If you had 100 users all run into a shop, that will most /likely/ lag like a motherfucker.
2) Security. This is a massive security flaw....
Forum: Scripting Help 10/09/2015, 02:51 PM
Replies: 8
Views: 531
Posted By BleverCastard
Re: HELP - saving name in database

You make a variable in the business enums. "Money"? When someone purchases something BizInfo[businessid][Money] += amount;

From here you then "Update .. SET Money = %d",...
Forum: Scripting Help 10/09/2015, 02:46 PM
Replies: 8
Views: 531
Posted By BleverCastard
Re: HELP - saving name in database

You don't need the '' quotes around integers, only strings. Also, "SELECT * FROM `shop` WHERE `ID` = %d". Why are you selecting everything from the shop when you only have to update the "owner"...
Forum: Scripting Help 10/09/2015, 02:07 PM
Replies: 2
Views: 556
Posted By BleverCastard
Re: Custom.img

Replace it. You should always create a backup of your work before proceeding.
Forum: Scripting Help 10/09/2015, 01:13 PM
Replies: 9
Views: 449
Posted By BleverCastard
Re: Can't run samp-server

Are you lot that blind to be missing the only "Unable to load filterscript 'vaction.amx'. "?
Forum: Scripting Help 09/09/2015, 03:42 PM
Replies: 1
Views: 273
Posted By BleverCastard
Re: Object bug

https://wiki.sa-mp.com/wiki/RemovePlayerAttachedObject
Forum: Scripting Help 09/09/2015, 01:39 PM
Replies: 3
Views: 321
Posted By BleverCastard
Re: MySQL Issue!

no. Just no. You post your issues here or not at all. Is that so when they help you, you can spam the shit of them with more problems that will occur?
Forum: Scripting Help 07/09/2015, 03:58 PM
Replies: 10
Views: 952
Posted By BleverCastard
Re: Rounding a certain float.

I haven't. Is there any way to convert it to a string to save it as %0.02f? I haven't converted a float to a string before so any help is appreciated.
Forum: Scripting Help 06/09/2015, 11:59 AM
Replies: 10
Views: 952
Posted By BleverCastard
Forum: Scripting Help 05/09/2015, 02:17 PM
Replies: 10
Views: 952
Posted By BleverCastard
Re: Rounding a certain float.

public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
floatsub(PlayerInfo[playerid][Health], amount);
if(weaponid == 4) floatsub(PlayerInfo[playerid][Health],...
Forum: Scripting Help 05/09/2015, 01:16 PM
Replies: 10
Views: 952
Posted By BleverCastard
Re: Rounding a certain float.

I guess I didn't read up about floatround properly then. However, tried that as well.. It spazzes it out as per the image.

I tried floatsub - floatsub(PlayerInfo[playerid][Health], amount); - and...
Forum: Scripting Help 05/09/2015, 01:07 PM
Replies: 10
Views: 952
Posted By BleverCastard
Rounding a certain float.

I have a variable for the players Health.
(PlayerInfo[playerid][Health]).

It loads perfectly when they log in, however, when they take damage, this happens:
http://i.imgur.com/yJ2b2gW.png
...
Forum: Everything and Nothing 04/09/2015, 06:32 PM
Replies: 21
Views: 1,715
Posted By BleverCastard
Re: Hard Drive.

So you've plugged the hard drive in the machine using SATA cables or using a caddy?
Forum: Scripting Help 04/09/2015, 03:36 PM
Replies: 2
Views: 226
Posted By BleverCastard
Re: Saving the skin

ffs. ******!!! Search "SetSpawnInfo" and look at the parameters.
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 07:28 AM.


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