SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 248
Search took 0.01 seconds.
Search: Posts Made By: PinkFloydLover
Forum: Everything and Nothing 23/01/2020, 05:52 AM
Replies: 315
Views: 35,413
Posted By PinkFloydLover
Re: Is any of the old peeps around?

13 years and still counting... how time flies. man some of my early posts are cringe af
Forum: Scripting Help 03/04/2016, 06:00 AM
Replies: 3
Views: 381
Posted By PinkFloydLover
Re: Problem MYSQL Command.

your query is incorrect you don't need to tell it what the value of faction time is if that's the value your trying to receive, remove the '= %d' from your query
Forum: Scripting Help 03/04/2016, 05:48 AM
Replies: 1
Views: 326
Posted By PinkFloydLover
Re: The Endless arguments

If you need to use a loop to format all of your SQL fields for queries then you're doing something wrong, you can just manually write them, it's bad practise to have too many fields in a table
Forum: Scripting Help 02/12/2015, 11:49 PM
Replies: 3
Views: 329
Posted By PinkFloydLover
Re: Acces Command

tbh using strtok now when you have so many much better options seems like a complete waste of time, if I where you I would stop using it

EDIT:
just to show you what this command would look like...
Forum: Scripting Help 02/12/2015, 11:36 PM
Replies: 3
Views: 462
Posted By PinkFloydLover
Re: [HELP] Anti Admin Aim

You need to find out why it's not working, add some prints, get the values & see if they are correct.

if((newkeys & KEY_HANDBRAKE) && !(oldkeys & KEY_HANDBRAKE)) // Botão RMB (foot)
{
new...
Forum: Scripting Help 02/12/2015, 11:30 PM
Replies: 3
Views: 329
Posted By PinkFloydLover
Re: Acces Command

if(PlayerInfo[playerid][pLevel] < 4)


you are checking if the player is less than level 4, you need to change it to >= 3, for more than or equal to 3/
Forum: Scripting Help 02/12/2015, 11:24 PM
Replies: 4
Views: 540
Posted By PinkFloydLover
Re: MySQL Libaries Problems [REP+]

I would say that you don't have the correct library installed on your server, you should be able to use the static version and get the server running, you should focus on why your server is crashing...
Forum: Scripting Help 02/12/2015, 10:49 AM
Replies: 9
Views: 607
Posted By PinkFloydLover
Re: Ban system

You need to spawn the player once he has logged in, not once he has been cleared from the ban check, you should spawn the player under the 'SQL_Account_Check' callback, ofcourse only after the player...
Forum: Scripting Help 02/12/2015, 05:21 AM
Replies: 4
Views: 442
Posted By PinkFloydLover
Re: Spawn-weapons

You need to add all the proper closing and opening brackets to your script, i can see by looking at it that it's not properly indented and you are missing some closing brackets.

the switch...
Forum: Scripting Help 02/12/2015, 04:13 AM
Replies: 9
Views: 832
Posted By PinkFloydLover
Re: Getting seperate tables[MYSQL]

I was wondering about this a little while ago, i remember you could do something like:


UPDATE `houses` SET `HouseOwnerID`= (SELECT `ID` FROM `players` WHERE `name` = '%s') WHERE `HouseID` = '%d'...
Forum: Scripting Help 02/12/2015, 02:46 AM
Replies: 9
Views: 607
Posted By PinkFloydLover
Re: Ban system

You need to re write your banning system i'm afraid, you don't need to store any of that information on the server when you have it saved in your database

why not simply just have under...
Forum: Scripting Help 02/12/2015, 02:20 AM
Replies: 13
Views: 829
Posted By PinkFloydLover
Re: Vehicle issue

if the value stored inside 'rows' is only 9, then that means that the query your sending is only returning 9 vehicles, it's a pretty simple query which is making me think that you only have 9...
Forum: Scripting Help 02/12/2015, 02:13 AM
Replies: 13
Views: 829
Posted By PinkFloydLover
Re: Vehicle issue

for(new i = 0; i < rows; i++)
{
VehInfo[vehicleid][VehMasterID] = cache_get_field_content_int(i,"MasterID");
VehInfo[vehicleid][VID] = cache_get_field_content_int(i,"ID");
...
Forum: Scripting Help 02/12/2015, 02:02 AM
Replies: 13
Views: 829
Posted By PinkFloydLover
Re: Vehicle issue

seems very strange, are you sure there are more than 9 vehicles in the vehicles table? if you are, then try putting a print inside your loop to pinpoint exactly when it stops and post back the results
Forum: Scripting Help 24/06/2015, 02:10 PM
Replies: 3
Views: 1,037
Posted By PinkFloydLover
Re: Anti Weapon hacks

You need to make your weapons server sided, the same as making an anti money hack.
http://forum.sa-mp.com/showthread.php?t=220089

You should think out your weapon system and how your going to...
Forum: General 18/01/2015, 05:37 PM
Replies: 2,982
Views: 557,379
Posted By PinkFloydLover
Re: Suggestions for future SA:MP updates

I hope in the 240 new objects includes a simple wallet object, I'm using briefcases for default models but you can't fit a briefcase in your back pocket!
Forum: Scripting Help 15/12/2014, 05:01 PM
Replies: 4
Views: 531
Posted By PinkFloydLover
Re: Gate only opens for one player

The problem is most likely the place that you called that function from, if the playerid value hasn't been set it will return 0 by default and will mean it will only work for playerid 0
Forum: Scripting Help 10/12/2014, 08:32 AM
Replies: 2
Views: 1,134
Posted By PinkFloydLover
Re: PlayerTextDrawSetString not working with 'format'

Thanks for the reply,
I understand how format works and the uses of it, I did that as an example to show it's not working.

I'm using format to display the players ammo,


format(str,...
Forum: Scripting Help 10/12/2014, 08:29 AM
Replies: 3
Views: 370
Posted By PinkFloydLover
Re: Possibly an sscanf issue?

the 'u' is to be used for player ID's and user names
try using 'i' for other integer values.
Forum: Scripting Help 10/12/2014, 08:08 AM
Replies: 2
Views: 1,134
Posted By PinkFloydLover
PlayerTextDrawSetString not working with 'format'

I don't usually ask for help, but for some reason this very simple piece of code has got my head spun upside down for last hour,

for example, this piece of code will display the textdraw fine
...
Forum: Scripting Help 27/11/2014, 01:53 PM
Replies: 2
Views: 334
Posted By PinkFloydLover
Re: need stock help.

"Houses/Casa%d.txt"

tried that?
Forum: Scripting Help 27/11/2014, 01:45 PM
Replies: 8
Views: 582
Posted By PinkFloydLover
Re: string not appearing normally?

change this:

gCapZone[i][czCappingTeam]=gPlayerInfo[playerid][pTeam];

to this

format(gCapZone[i][czCappingTeam], sizeof(gCapZone[i][czCappingTeam]), "%s", gPlayerInfo[playerid][pTeam]);

...
Forum: Scripting Help 25/11/2014, 03:18 AM
Replies: 5
Views: 550
Posted By PinkFloydLover
Re: Object - Please help!

CreateObject returns the ID of the object created, so you can just do:


new oID = CreateObject(model, X, Y, Z, 0.0, 0.0, 0.0, 300.0);

oID now holds the object ID.
Forum: Scripting Help 25/11/2014, 02:40 AM
Replies: 7
Views: 504
Posted By PinkFloydLover
Re: Help-me please

There is also a native function released in 0.3x or 0.3z??

LimitGlobalChatRadius(200.0);

http://wiki.sa-mp.com/wiki/LimitGlobalChatRadius

might wanna check that out.
Forum: Scripting Help 25/11/2014, 02:34 AM
Replies: 17
Views: 908
Posted By PinkFloydLover
Re: AW: Stop commands

shouldn't have to change command processors to do this. it's already been posted multiple times.
You don't need the zcmd callback OnPlayerRecievedCommand or whatever it is, you can put it in...
Showing results 1 to 25 of 248

 

All times are GMT. The time now is 05:58 PM.


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