SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 251
Search took 0.01 seconds.
Search: Posts Made By: Banana_Ghost
Forum: Scripting Help 04/12/2017, 04:37 PM
Replies: 4
Views: 135
Posted By Banana_Ghost
Re: Server doesnt let more than 10 players to log in (mysql bug)

All the LIMIT 10 does is it finds the first 10 results from your query and thats it.
Forum: Includes 01/12/2017, 04:11 AM
Replies: 13
Views: 1,196
Posted By Banana_Ghost
Re: [0.3.8] mSelection [FIXED & COMPATIBLE]

You changed the following:

//From
if(0 <= mID < 20000)
//To
if(0 <= mID < 40000)

You set the IDs for Skins too high as well as didn't think about the new custom objects.

Fix it with this:
Forum: Scripting Help 16/01/2017, 07:16 AM
Replies: 8
Views: 264
Posted By Banana_Ghost
Re: rcon password

From what I just tested, it seems to be 241 characters.
Forum: Scripting Help 16/10/2016, 07:17 PM
Replies: 9
Views: 160
Posted By Banana_Ghost
Re: Returning Float in function

You don't have to, but if I remember correctly, if you tag a function, it'll throw either a warning or an error if it isn't located above what you're calling the function in. Either way is fine...
Forum: Scripting Help 16/10/2016, 07:13 PM
Replies: 9
Views: 160
Posted By Banana_Ghost
Re: Returning Float in function

Ah fuck I was removing your comments and I didn't even notice it D:. Either way edited it.

Also do what SickAttack said.
Forum: Scripting Help 16/10/2016, 07:09 PM
Replies: 9
Views: 160
Posted By Banana_Ghost
Re: Returning Float in function

stock Float:GetPlayerAimingPoint(playerid, Float:Angle)
{
new Float:X, Float:Y, Float:Z; //Float:Angle;
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Angle);
...
Forum: Includes 05/06/2016, 10:55 AM
Replies: 19
[Include] IP Lookup Script
Views: 5,016
Posted By Banana_Ghost
Re: IP Lookup Script

Updated the include.

Added support for Timezones and Zip Codes.

GetPlayerTimezone(playerid, timezone[], size = sizeof(timezone));
GetPlayerZipcode(playerid, zipcode[], size =...
Forum: Includes 05/06/2016, 10:51 AM
Replies: 19
[Include] IP Lookup Script
Views: 5,016
Posted By Banana_Ghost
Re: IP Lookup Script

This is probably because the IP thats being passed has returned some sort of null data (some IPs may be missing a little bit of data). CallLocalFunction crashes if you pass a null string to it.
...
Forum: Bug Reports 02/06/2016, 04:26 AM
Replies: 15
Views: 2,902
Posted By Banana_Ghost
Re: Sniper Shots - OPWS not called if another bullet is shot at the same location

OPWS isn't called at all when a sniper's bullets don't land anywhere (i,e: the sky, or a very far away distance) unlike other weapons.
Forum: Plugin Development 28/05/2016, 07:41 AM
Replies: 59
[Plugin] sscanf 2
Views: 23,191
Posted By Banana_Ghost
Re: sscanf 2

I also had a problem with installing Visual C++ 2015 Redistributable when I needed it to install a program. I am currently running Windows 8.1 and fixed it by installing KB2919355 from Windows...
Forum: Scripting Help 23/05/2016, 04:58 AM
Replies: 5
Views: 271
Posted By Banana_Ghost
Re: How to count how much players in a faction

Just access the data itself where ever it's stored and then print it or something.

How to count the players, use something like:

#define MAX_FACTIONS 10 //See GetMemberCountInFaction for...
Forum: Scripting Help 23/05/2016, 04:46 AM
Replies: 2
Views: 132
Posted By Banana_Ghost
Re: INPUTTEXT HELP

Use strval. Like:


PlayerInfo[playerid][pDostup] = strval(inputtext);
Forum: Includes 18/05/2016, 01:34 PM
Replies: 19
[Include] IP Lookup Script
Views: 5,016
Posted By Banana_Ghost
Re: IP Lookup Script

It's accuracy is approx ~50 miles most likely, not every city has IP addresses geo-located to them. As far as I've tested, the actual country and ISP is accurate.

The API is working fine, my...
Forum: Includes 18/05/2016, 09:50 AM
Replies: 19
[Include] IP Lookup Script
Views: 5,016
Posted By Banana_Ghost
Re: IP Lookup Script

This script pulls the information directly from the Internet using SA-MP's HTTP function.

Whitetiger's script pulls the information from SQLite databases.
Forum: Includes 17/05/2016, 11:19 AM
Replies: 19
[Include] IP Lookup Script
Views: 5,016
Posted By Banana_Ghost
IP Lookup Script

Hi,

Emmet was the original designer of the code (Original Thread: http://forum.sa-mp.com/showthread.php?t=521843). I picked this up off the forums a while ago after I got tired of updating GeoIP...
Forum: Scripting Help 02/04/2016, 05:47 AM
Replies: 8
Views: 253
Posted By Banana_Ghost
Re: LOGIN PROBLEM

The server and client version doesn't match.

In your picture in your original post, it says you're using SA-MP 0.3.7.

In the logs you just gave me:

SA-MP Dedicated Server ...
Forum: Scripting Help 02/04/2016, 05:34 AM
Replies: 8
Views: 253
Posted By Banana_Ghost
Re: LOGIN PROBLEM

So you can see your server's information in the SA-MP browser, but when you try to connect, it doesn't connect?

On another note, make sure your server and client versions match.
Forum: Scripting Help 02/04/2016, 05:21 AM
Replies: 8
Views: 253
Posted By Banana_Ghost
Re: LOGIN PROBLEM

just add 127.0.0.1:7777 or 127.0.0.1:port number of the sa-mp server to your sa-mp browser.

Just to ask out of curiosity, can you see your server information in the SA-MP browser or does it just...
Forum: Scripting Help 02/04/2016, 05:19 AM
Replies: 6
Views: 535
Posted By Banana_Ghost
Re: error 018: initialization data exceeds declared size

One of your defines such as:

#define RegisterCommand "yoloyoloyolo"

has more 11 characters (you made an array to hold 12 characters (11 + the null character)).

To get rid of this error,...
Forum: Scripting Help 02/04/2016, 05:08 AM
Replies: 8
Views: 253
Posted By Banana_Ghost
Re: LOGIN PROBLEM

If you're hosting it on your same pc (I can see you're using an internal ip atm), use 127.0.0.1 (loopback ip) and see if it works, if it doesn't and you don't mind, post your server's log here.
Forum: Scripting Help 29/12/2015, 11:22 PM
Replies: 3
Views: 197
Posted By Banana_Ghost
Re: TextDraw

You're using hex coloring notation for setting the string colors when you should use gametext style coloring.
You also should be using Player TextDraws.
Forum: Client Support 29/12/2015, 03:43 AM
Replies: 121
Views: 25,432
Posted By Banana_Ghost
Re: SA-MP 0.3.7 Client - Internet list

I find it quite sad that some people are so ungrateful about their servers not appearing on the internet master list, while failing to keep in mind that the service is provided to server owners for...
Forum: Scripting Help 28/11/2015, 03:25 PM
Replies: 22
Views: 575
Posted By Banana_Ghost
Re: DM mode after a player dies, how to reset the player position resurrection.

I hope you know that your attitude is kind of uncalled for, especially since your on a forum bitching because no one will assist you with your coding issues (or even code it for you). Nobody on this...
Forum: Scripting Help 22/09/2015, 03:17 PM
Replies: 15
Views: 493
Posted By Banana_Ghost
Re: Question [REP+]

If you use the above, the second it doesn't find a weapon, it'll fail because it's returning a value prematurely, preventing the rest of the code from executing.
Instead of having messy and barely...
Forum: Scripting Help 22/09/2015, 02:54 PM
Replies: 12
Views: 633
Posted By Banana_Ghost
Re: Get current gamemode name?

You could also do something like this:

In your server console, you can type "varlist" without the quotes, it'll show you your server variables.

You could set the mapname using the script to the...
Showing results 1 to 25 of 251

 

All times are GMT. The time now is 05:33 AM.


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