SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 76
Search took 0.00 seconds.
Search: Posts Made By: Counterafk
Forum: Scripting Help 05/11/2016, 11:08 PM
Replies: 4,149
Views: 638,654
Posted By Counterafk
Re: Little coding questions - For general minor queries 5

I dont see how the usage of the function is relevant.. Anyhow I'm gonna use the coordinates of the function to set spawnpoints.
Forum: Scripting Help 05/11/2016, 10:49 PM
Replies: 4,149
Views: 638,654
Posted By Counterafk
Re: Little coding questions - For general minor queries 5

Hi. So I'm trying to get the average xyz for all players, i dont have access to go ingame and try it, but would the following work? it compiles and all but does anyone know how to do this properly(if...
Forum: Scripting Help 31/10/2016, 08:16 PM
Replies: 4,149
Views: 638,654
Posted By Counterafk
Re: Little coding questions - For general minor queries 5

enum gangEnum
{
//more variables..
GangRankName[4][20]
};


GM.pwn(185) : error 001: expected token: "}", but found "["
GM.pwn(186) : error 010: invalid function or declaration
Forum: Scripting Help 07/09/2016, 11:48 AM
Replies: 4,149
Views: 638,654
Posted By Counterafk
Forum: Includes 06/09/2016, 02:14 PM
Replies: 9
Views: 1,955
Posted By Counterafk
Re: Simple get player sex

I made one a week or two ago for a script I'm working on, if you wanna use it


new SkinRace[] = // 0 = Caucasian / 1 = African American / 2 = Asian / 3 = Latino
{
0,0,0,0,1,1,1,
...
Forum: Scripting Help 01/09/2016, 09:32 AM
Replies: 10
Views: 726
Posted By Counterafk
Re: Dialog help

Doesnt look like you have a if statement for your sub-menus(eg. DIALOG_RP_CMDS), thus nothing happens(I think).


if(dialogid == DIALOG_RP_CMDS || dialogid == DIALOG_RP || dialogid == etc)
{...
Forum: Scripting Help 28/08/2016, 03:37 AM
Replies: 4,149
Views: 638,654
Posted By Counterafk
Re: Little coding questions - For general minor queries 5

Hi. My GetSkinRace stock returns the value 0 every time. Any suggestions as to why? :p


stock GetSkinRace(skin)
{
new raceid = 5;
raceid = strval(SkinRace[skin]);
return raceid;
}
Forum: Scripting Help 03/08/2016, 09:24 PM
Replies: 4,149
Views: 638,654
Posted By Counterafk
Re: Little coding questions - For general minor queries 5

SQLite:

If I have a DB manager open(SQLiteBrowser, specifically), it seems as if playerstats dont save(update) when people disconnect. Works fine if I don't though. Is that just how it is, or is...
Forum: Scripting Help 30/07/2016, 07:28 PM
Replies: 2
Views: 541
Posted By Counterafk
Re: OnPlayerKeyStateChange

if(newkeys & KEY_ACTION)
{
// code
}
Forum: Scripting Help 30/07/2016, 03:50 PM
Replies: 4,149
Views: 638,654
Posted By Counterafk
Forum: Scripting Help 30/07/2016, 01:14 PM
Replies: 4,149
Views: 638,654
Posted By Counterafk
Re: Little coding questions - For general minor queries 5

Can you not pass strings through timers or am I doing something wrong?

in samp.bans:
127.0.0.7 [30/07/16 | 14:41:55] player - (null)

Ban command:

SetTimerEx("DelayedBan", 350, false, "is",...
Forum: Includes 16/04/2016, 12:47 PM
Replies: 15
Views: 8,882
Posted By Counterafk
Re: Disable class selection

Link is broken, could someone who has it upload a pastebin mirror?

Thanks!
Forum: Scripting Help 14/04/2016, 05:27 PM
Replies: 2
Views: 383
Posted By Counterafk
Re: Stock parameter issue

Damn. That fixed it, thank you!
Forum: Scripting Help 14/04/2016, 05:22 PM
Replies: 2
Views: 383
Posted By Counterafk
Forum: Scripting Help 10/02/2016, 02:05 PM
Replies: 4,149
Views: 638,654
Posted By Counterafk
Re: Little coding questions - For general minor queries 5

Hi! I'm trying to make a simple ban system, in which I am trying to save the reason along with who banned him using dini.

The error message:

.pwn(940) : error 047: array sizes do not match, or...
Forum: Scripting Help 06/02/2016, 12:34 PM
Replies: 4,149
Views: 638,654
Posted By Counterafk
Forum: Scripting Help 30/01/2016, 11:02 AM
Replies: 5
Views: 834
Posted By Counterafk
Forum: Scripting Help 30/01/2016, 10:44 AM
Replies: 5
Views: 834
Posted By Counterafk
How would one run an .mp3 with PlayAudioStreamForPlayer?

I've seen on several servers people have the same song play upon logging in(that plays from start to end)


so instead of the PlayAudioStreamForPlayer url being an ip that just connects to a...
Forum: Scripting Help 17/01/2016, 02:14 AM
Replies: 2
Views: 362
Posted By Counterafk
Forum: Scripting Help 16/01/2016, 10:16 PM
Replies: 2
Views: 362
Posted By Counterafk
string showing wrong value? (solved)

http://i.imgur.com/GWTXemN.png

As you can see on the image above it says "115" wins the round, which is a completely random value, trying to understand where I messed up. Here's the code.

...
Forum: Filterscripts 04/01/2016, 03:21 PM
Replies: 243
[FilterScript] [FS] GangZone Maker[BETA]
Views: 106,129
Posted By Counterafk
Re: [FS] GangZone Maker[BETA]

Im having an issue w/ moving the actual gangzone, Example: I can spam leftclick & leftarrow, and the gangzone moves south, but when I spam leftclick & rightarrow it just increases the size instead of...
Forum: Tutorials 04/01/2016, 02:43 PM
Replies: 44
Views: 19,686
Posted By Counterafk
Re: [New] How to make capture zone system (no more code repeating)

Wow. Cant believe I missed that in the original post, thanks alot though man! :o
Forum: Tutorials 03/01/2016, 11:27 PM
Replies: 44
Views: 19,686
Posted By Counterafk
Re: [New] How to make capture zone system (no more code repeating)

Could someone please explain

new const gCaptureZone[][e_CAPTURE_ZONE] =
{
{"Big Ear", {-437.5,1513.671875, -244.140625,1636.71875}, {-311.0136,1542.9733,75.5625}, 0},
{"Area 51",...
Forum: Scripting Help 03/01/2016, 07:52 PM
Replies: 4,149
Views: 638,654
Posted By Counterafk
Re: Little coding questions - For general minor queries 5

public OnPlayerDeath(playerid, killerid, reason)
{

new kills = Killz[killerid];
new string[32]
format(string,sizeof(string),"Kills: %d", kills); // <---- Line 789
...
Forum: Filterscripts 10/12/2015, 05:02 PM
Replies: 473
Views: 290,341
Posted By Counterafk
Re: TDEditor 1.14 - New TextDraw creator with Preview models.

Hey, why do all the options show up as black ? I could go around in the menus where the options are supposed to be, its just all black, like as if the .txd is broken or something. Heres a picture of...
Showing results 1 to 25 of 76

 

All times are GMT. The time now is 12:53 PM.


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