SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 126
Search took 0.00 seconds.
Search: Posts Made By: cosbraa
Forum: Scripting Help 06/08/2015, 11:16 AM
Replies: 4
Views: 430
Posted By cosbraa
Re: Can anyone fix points.cfg for me?

What is this? Post code
Forum: Scripting Help 24/07/2015, 10:16 AM
Replies: 13
Views: 842
Posted By cosbraa
Re: Hello Again ;)

1/10/100 * pBankCash returns a rounded integer value

1/10/100 is 0.001, but returns as 0, so 0 * pBankCash = 0.

Try using this for the code:

format(s, sizeof(s), "Interest gained: 0.1 |...
Forum: Scripting Help 03/07/2015, 11:25 AM
Replies: 8
Views: 439
Posted By cosbraa
Re: Can we compact this in one line?

if(admlvl < 1)

have you no experience with less than / greater than if statements?

this if statement checks if players admin level is less than 1, which means they're not admin.
Forum: Plugin Development 30/11/2014, 10:14 AM
Replies: 815
[Plugin] IRC Plugin
Views: 288,403
Posted By cosbraa
Re: IRC Plugin

The server I script for, which is Linux, will timeout on connections to IRC.
My windows computer will connect fine with no issues, but the linux server will not connect and will timeout every...
Forum: Scripting Help 28/08/2014, 08:42 AM
Replies: 13
Views: 719
Posted By cosbraa
Re: strcmp false detection

Make sure both name variables have a name stored in it and are not empty.
Forum: Scripting Help 03/08/2013, 04:58 AM
Replies: 10
Views: 1,027
Posted By cosbraa
Re: OnPlayerGiveDamage fail?:(

Above the line with public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)

Put

forward OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid);
Forum: Scripting Help 05/04/2013, 10:55 AM
Replies: 12
Views: 1,371
Posted By cosbraa
Re: Help: How to make a command find the closest co-ords

This is a similiar way I use to get closest co-ords to a player.
stock ClosestTruckLoad(playerid)
{
new closest = -1, Float:dist=9999999;
for(new i; i < sizeof(TruckLocations); i++)
{...
Forum: Scripting Help 02/03/2013, 09:36 AM
Replies: 7
Views: 2,795
Posted By cosbraa
Re: Notepad++ escape characters

Ahh, derp, didn't realise you said put //', Cessil. Done that and it fixes all the grey but still, how do I fix this.

And yea, Andre, I know that but I made that when I didn't know of it :P
...
Forum: Scripting Help 02/03/2013, 09:33 AM
Replies: 7
Views: 2,795
Posted By cosbraa
Re: Notepad++ escape characters

Ehh, the script was fine on my old laptop.
But anyway, I'll give that a go. "//" after the if statement?

http://puu.sh/2aIRh
Still grey, and I'll let you know that the script compiles fine.
Forum: Scripting Help 02/03/2013, 09:22 AM
Replies: 7
Views: 2,795
Posted By cosbraa
Re: Notepad++ escape characters

I've reloaded it multiple times yet no avail.

And what is wrong with the if statement?
Forum: Scripting Help 02/03/2013, 09:01 AM
Replies: 7
Views: 2,795
Posted By cosbraa
Notepad++ escape characters

I recently got a new computer, installed notepadd++ and got it working with .pwn/.inc files after following Slice's tutorial, but I seem to have a problem with the escaped characters which seem to...
Forum: Tutorials 01/03/2013, 09:04 AM
Replies: 466
Views: 208,655
Posted By cosbraa
Re: PAWN for SA-MP in Notepad++

I seem to have a problem with escaped characters?
http://puu.sh/2acle
Forum: Scripting Help 07/01/2013, 07:42 AM
Replies: 7
Views: 1,141
Posted By cosbraa
Forum: Scripting Help 07/01/2013, 07:40 AM
Replies: 7
Views: 1,141
Posted By cosbraa
Re: How to do this without spamming (onplayerupdate / sendclientmessage)

OnGameModeInit:
SetTimer("CheckServerWeapons", 1000, true);

Remove "CheckServerWeapons(playerid);" from OnPlayerUpdate.

And change the CheckServerWeapons(playerid) to CheckServerWeapons(),...
Forum: Scripting Help 04/01/2013, 11:10 AM
Replies: 3
Views: 544
Posted By cosbraa
Re: Enum problem.

MAX_LENGTH?
Could be an issue with the space, though I ain't sure and can't test atm.
Forum: Scripting Help 15/12/2012, 05:44 AM
Replies: 4
Views: 726
Posted By cosbraa
Re: House system error

Show code where you enter the house.
Forum: Scripting Help 14/12/2012, 06:33 AM
Replies: 2
Views: 506
Posted By cosbraa
Forum: Scripting Help 10/12/2012, 07:44 AM
Replies: 11
Views: 1,262
Posted By cosbraa
Re: CMD:Refuel

warning is on line 90390, not 208.
Forum: Client Support 09/12/2012, 04:10 AM
Replies: 5
Views: 1,737
Posted By cosbraa
Stuck on "Connected. Joining the game..."

I join a server I regularly play on, which I was on yesterday, but today I connected and it has the "Connected. Joining the game..." message, but does not connect.

Ideas?
Forum: Scripting Help 05/12/2012, 10:33 AM
Replies: 2
Views: 790
Posted By cosbraa
Re: /Makeadmin bug.

if(PlayerInfo[playerid][pAdmin] >= 5 || IsPlayerAdmin(playerid))

IsPlayerAdmin is the RCON admin, while [pAdmin] is your scripted admin level.
Forum: Scripting Help 05/12/2012, 04:42 AM
Replies: 3
Views: 1,983
Posted By cosbraa
Re: need help with a command to play audio url

You can't remove that message from sending to players, only the client themself can remove it (/audiomsg).
Forum: Scripting Help 04/12/2012, 04:27 PM
Replies: 10
Views: 1,759
Posted By cosbraa
Re: Checking how much players are currently online

I took the link of the pastebin from foreach thread. Oh well.
Didn't know about Iter_Count, nice.
Forum: Scripting Help 04/12/2012, 04:08 PM
Replies: 2
Views: 778
Posted By cosbraa
Re: How do I fix it

Fix what?
Bad image link.
Forum: Scripting Help 04/12/2012, 04:04 PM
Replies: 10
Views: 1,759
Posted By cosbraa
Re: Checking how much players are currently online

You need foreach include.
Download it here: http://pastebin.com/Seseuh2x
(click download just above the code, and rename the file to "foreach.inc", place it in your pawno > include folder then...
Forum: Scripting Help 04/12/2012, 03:40 PM
Replies: 10
Views: 1,759
Posted By cosbraa
Re: Checking how much players are currently online

stock GetOnlinePlayers()
{
new amount;
foreach(Player, i)
{
//if(IsPlayerConnected(i))
amount++;
}
return amount;
}
Showing results 1 to 25 of 126

 

All times are GMT. The time now is 06:00 AM.


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