SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.01 seconds.
Search: Posts Made By: Dark_Kostas
Forum: Scripting Help 18/02/2015, 10:01 AM
Replies: 17
Views: 3,742
Posted By Dark_Kostas
Re: Having an adaption support for GTA United

Even though i can't find the video anymore, i still remember the Final Countdown playing in the background of it. Good old days. It's been long time since i played sa-mp because of numerous...
Forum: Scripting Help 13/04/2013, 03:41 PM
Replies: 7
Views: 493
Posted By Dark_Kostas
Re: CreateObject

You can "ObjectArray[0] = CreateObject"(the next object would be ObjectArray[1] and goes on) each object so they will have an ID and then you can use DestroyObject on a loop like
loop...
Forum: Scripting Help 13/04/2013, 03:37 PM
Replies: 5
Views: 747
Posted By Dark_Kostas
Re: Run timer error 6:Invalid Instruction

Is your function LoadStats there? Have you tried use "print" to debug messages and see if LoadStats function is being parsed before the crash?
Forum: Scripting Help 13/04/2013, 03:25 PM
Replies: 3
Views: 642
Posted By Dark_Kostas
Re: .::How To create NPC::.

You can use the new plugin FCNPC (http://forum.sa-mp.com/showthread.php?t=428066). Looks quite promising and has many functions.
Forum: Scripting Help 14/09/2012, 11:42 AM
Replies: 7
Views: 1,061
Posted By Dark_Kostas
Re: Vehicle Health Command, Is broken, Need help !!

if(strcmp(cmd, "/vhealth", true) == 0)
{
new carid = GetPlayerVehicleID(playerid);
if(carid == 0) return SendClientMessage(playerid, COLOR_GREY, "* You are not in a vehicle!");...
Forum: Scripting Help 06/02/2012, 09:04 AM
Replies: 2
Views: 663
Posted By Dark_Kostas
Re: Server quits with I type an rcon command

http://wiki.sa-mp.com/wiki/OnRconCommand Read the Important note
Forum: Scripting Help 04/02/2012, 07:21 AM
Replies: 10
Views: 1,548
Posted By Dark_Kostas
Re: MYSQL > Quering[QUICK HELP]

are you sure its called score and not Score, scOre ScoRE or something else?
Forum: Scripting Help 04/02/2012, 06:58 AM
Replies: 1
Views: 540
Posted By Dark_Kostas
Re: ZCMD problem

Change the "u" with "d".

"u" is for players and "d" is for any number(not float)
Forum: Everything and Nothing 02/01/2012, 11:16 AM
Replies: 7
Views: 4,897
Posted By Dark_Kostas
Re: TXD Editor

I never had any false reports. Only when using some memory edit programs, but still rarely.
Forum: Scripting Help 02/01/2012, 11:14 AM
Replies: 7
Views: 971
Posted By Dark_Kostas
Re: 3 questions

Read this about 2nd
http://forum.sa-mp.com/showthread.php?t=282801
Forum: Scripting Help 02/01/2012, 10:24 AM
Replies: 3
Views: 1,001
Posted By Dark_Kostas
Re: MPH and KMH

return (floatround(retres * 100, floatround_ceil)*1.6);
Forum: Scripting Help 02/01/2012, 10:14 AM
Replies: 1
Views: 660
Posted By Dark_Kostas
Re: Npc help!

replace this
StartRecordingPlayback(PLAYER_RECORDING_TYPE_ONFOOT, NPC);
with this
StartRecordingPlayback(PLAYER_RECORDING_TYPE_ONFOOT, rec);
Forum: Scripting Help 02/01/2012, 09:54 AM
Replies: 5
Views: 1,205
Posted By Dark_Kostas
Re: Server Crashing when entered on Taxi Company

Are you sure that these settings are correct?

SetPlayerInterior(playerid, 100);
SetPlayerVirtualWorld(playerid, 100);
SetPlayerPos(playerid, 1784.8574,-1841.2489,266.3188);...
Forum: Scripting Help 02/01/2012, 09:51 AM
Replies: 11
Views: 1,784
Posted By Dark_Kostas
Re: [HELP] MySQL Registration Failure

if ( strlen ( inputtext ) <= 0 || strlen ( inputtext ) > 100 )
Forum: Scripting Help 02/01/2012, 09:47 AM
Replies: 3
Views: 699
Posted By Dark_Kostas
Re: Mini timer help nedded

Create a global var which will store the seconds of the arrest and then make a timer which each second will reduce by 1 your var. Then make it if it's equal to 0, free him.
Forum: Scripting Help 02/01/2012, 09:45 AM
Replies: 12
Views: 1,641
Posted By Dark_Kostas
Re: Assistance against hackers

The most simple way is to range ban them. Or you can improve your anticheat for example

if (oldVehHP == 1000 && newVehHP == 0) Ban(HAXXOR!)
Forum: Scripting Help 02/01/2012, 09:43 AM
Replies: 4
Views: 1,232
Posted By Dark_Kostas
Re: script drive in first person

Yes. It can be "close" by setting all time the camera each X milliseconds but it will be laggy and not nice. In order to do this you need something like

1) Create a small(or invisible) object
2)...
Forum: Scripting Help 02/01/2012, 08:58 AM
Replies: 33
Views: 5,604
Posted By Dark_Kostas
Re: setting samp hex color

Do you mean that the column is defined as Char? Then yes.
Forum: Scripting Help 02/01/2012, 08:56 AM
Replies: 5
Views: 1,205
Posted By Dark_Kostas
Re: Server Crashing when entered on Taxi Company

Do you crash when you go at the pickup or when you "answer" through the dialog?
Forum: Scripting Help 02/01/2012, 08:53 AM
Replies: 3
Views: 787
Posted By Dark_Kostas
Re: i have 2 types of warnings and i dont know what they mean!

About loose indentation take a look at this one http://forum.sa-mp.com/showthread.php?t=274028
The other error i think was happening when you had a global variable and a local one with the same...
Forum: Scripting Help 02/01/2012, 08:49 AM
Replies: 4
Views: 1,227
Posted By Dark_Kostas
Re: [HELP] TOLL

http://forum.sa-mp.com/showthread.php?t=92 Make sure you read wiki, it contains a lot of information.
Forum: Scripting Help 02/01/2012, 08:47 AM
Replies: 5
Views: 1,071
Posted By Dark_Kostas
Re: Interior change problem

As you use CP, you can use the OnPlayerEnterCheckpoint callback instead of a timer. Also you can have something like a cooldown after entering/exiting from somewhere. So you can have a var like this...
Forum: Scripting Help 02/01/2012, 08:40 AM
Replies: 4
Views: 1,227
Posted By Dark_Kostas
Re: [HELP] TOLL

Your code should work, but there will be some problems. For example if you go at that point and don't leave immediately you will lose cash all the time(each 1.5 sec based on your timer). So what i...
Forum: Scripting Help 02/01/2012, 08:34 AM
Replies: 7
Views: 5,994
Posted By Dark_Kostas
Re: (181) : warning 225: unreachable code

So, before this line(and it's comment), at 179 there should be a return. Remove it and error gone!
Forum: Scripting Help 02/01/2012, 08:31 AM
Replies: 4
Views: 1,232
Posted By Dark_Kostas
Re: script drive in first person

It can't be done in sa-mp.
Showing results 1 to 25 of 500

 

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


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