SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: xRadical3
Forum: Scripting Help 17/09/2020, 08:01 PM
Replies: 9
Views: 218
Posted By xRadical3
Re: Compile takes 1600 seconds

This game mode is for someone else who has given me to fix some bugs and add new systems, but when I saw that compilation time took a long time, I did not do anything more.
I tested some other...
Forum: Scripting Help 16/09/2020, 08:52 AM
Replies: 9
Views: 218
Posted By xRadical3
Compile takes 1600 seconds

I have a script that has 40k lines and compiles in 1600 seconds.
But I have another gamemode with 60k line only takes 60-100 seconds.
What's wrong? :-|

Also after compile finished .amx size is...
Forum: Scripting Help 11/09/2020, 06:53 PM
Replies: 4
Views: 139
Posted By xRadical3
Re: why this message is not showing up?

Send 2 messages.
format(string, sizeof(string), "{79C4CC}General> {98F5FF}Level:{FFFFFF}[%i] (%i/%i) {98F5FF}VIP:{FFFFFF}[%s] {98F5FF}Wanted Level:{FFFFFF}[%i] {98F5FF}Faction:{FFFFFF}[%s]",
...
Forum: Scripting Help 07/09/2020, 07:46 PM
Replies: 6
Views: 216
Posted By xRadical3
Re: INSERT INTO error #1064 while executing query

Make sure `hOwner`.`houses` column and `bOwner`.`business` column is varchar.
Forum: Scripting Help 04/09/2020, 04:28 PM
Replies: 3
Views: 87
Posted By xRadical3
Forum: Scripting Help 04/09/2020, 08:15 AM
Replies: 4
Views: 166
Posted By xRadical3
Re: Camera Angle

https://wiki.sa-mp.com/wiki/GetPlayerCameraPos
https://forum.sa-mp.com/showpost.php?p=3808903&postcount=2
Forum: Scripting Help 03/09/2020, 10:06 PM
Replies: 9
Views: 241
Posted By xRadical3
Re: error 017: undefined symbol "cache_get_field_content_float"

Make sure the streamer plugin has loaded successfully.
Also use the latest streamer version.
Forum: Scripting Help 31/08/2020, 09:07 AM
Replies: 1
Views: 83
Posted By xRadical3
Re: problem pay hitman help

new HitContract[MAX_PLAYERS];
CMD:killer(playerid,params[])
{
new targetid,str[128],ammount,Name3[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME];//Creating variable for name
...
Forum: Scripting Help 30/08/2020, 03:00 PM
Replies: 6
Views: 150
Posted By xRadical3
Re: random float

new Float: var[5] = {25.50, 35.00, 15.00, 13.22, 5.35};
new var_number = -1;
new var_numberEx = sizeof(var);

RandFloat()
{
var_number++;
if( var_number == sizeof(var) ) var_number =...
Forum: Scripting Help 29/08/2020, 07:37 AM
Replies: 1
Views: 92
Posted By xRadical3
Re: Hitman's list is not showing

SetPVarInt(playerid,"hitmanmoney",ammount);
//change to
SetPVarInt(targetid,"hitmanmoney",ammount);
Forum: Scripting Help 28/08/2020, 09:50 AM
Replies: 3
Views: 119
Posted By xRadical3
Re: random only 2 number

I wrote a simple function to return only 1 or 3 ...
CreateRandom(number1, number2)
{
new nrand = random(100);
switch(nrand)
{
case 0..49: return number1;
case...
Forum: Scripting Help 28/08/2020, 09:06 AM
Replies: 3
Views: 123
Posted By xRadical3
Re: How load bool variable?

I found this in my old gamemodes:
bool:cache_get_value_name_bool(idx, column[], &bool:dest)
{
new var;
cache_get_value_name_int(idx, column, var);
if(var == 1) dest = true;
else...
Forum: Scripting Help 27/08/2020, 11:58 PM
Replies: 7
Views: 209
Posted By xRadical3
Re: Slow MySQL queries

Idk.
But you can have two or more connection to MySQL.
new MySQL:first_connection;
new MySQL:second_connection;

first_connection = mysql_connect(...);
second_connection = mysql_connect(...);
Forum: Scripting Help 27/08/2020, 09:27 PM
Replies: 7
Views: 209
Posted By xRadical3
Re: Slow MySQL queries

Can you show an example of your query and codes that is slow in the script?
Forum: Scripting Help 27/08/2020, 08:50 PM
Replies: 7
Views: 209
Posted By xRadical3
Re: Slow MySQL queries

How long does it take to a query?
Did you set mysql_log to all?
If you did it, the queries will probably take longer and slow.
Forum: Scripting Help 27/08/2020, 09:33 AM
Replies: 2
Views: 110
Posted By xRadical3
Re: damage

Simple code:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID)
{
new
string[16];
...
Forum: Scripting Help 26/08/2020, 06:53 AM
Replies: 4
Views: 111
Posted By xRadical3
Re: Why the GM is unknown please help me!

https://forum.sa-mp.com/showthread.php?t=262796 - CrashDetect
https://forum.sa-mp.com/showthread.php?t=249226 - Nativechecker
Forum: Scripting Help 24/08/2020, 09:12 AM
Replies: 5
Views: 212
Posted By xRadical3
Re: Login help

Show how you save accounts and load it.
Forum: Scripting Help 23/08/2020, 04:36 PM
Replies: 5
Views: 178
Posted By xRadical3
Re: NPC randomly stops playing recording

What code should it show you?



You may have commands that work on NPCs.
For example, when you respawn all vehicle, the NPC vehicles also respawn and stopping play recording.
Forum: Scripting Help 23/08/2020, 01:09 PM
Replies: 4
Views: 163
Posted By xRadical3
Re: Virtual World Script

GetAvailableVirtualWorld()
{
new rand_vw = random(10000);
foreach(new i : Player)
{
if(GetPlayerVirtualWorld(i) != rand_vw) return rand_vw;
}
return 0;
}
Forum: Scripting Help 22/08/2020, 04:14 PM
Replies: 1
Views: 63
Posted By xRadical3
Re: Help

You need long string.
static PlayersString[2000];
CMD:players(playerid, params[])
{
if( !isnull(PlayersString) ) PlayersString[0] = EOS;
new string[200], name[MAX_PLAYER_NAME];
new...
Forum: Scripting Help 20/08/2020, 10:28 PM
Replies: 11
Views: 341
Posted By xRadical3
Re: PawnCMD Flags

I saw that you have hook callback OnPlayerLogin to set p_Permission.

Could this be the problem?
Because I think the hook is called first, then the main callback or this hook is not called at...
Forum: Scripting Help 18/08/2020, 11:52 PM
Replies: 2
Views: 98
Posted By xRadical3
Re: error line 64 <zcmd>

Include a_samp before the zcmd.
Forum: Scripting Help 18/08/2020, 11:27 AM
Replies: 5
Views: 227
Posted By xRadical3
Re: anti fly hack

Include nex-ac in your script then go scriptfiles/nex-ac_settings and disable all other anti-hacks, Just enable anti fly-hack.
Forum: Scripting Help 18/08/2020, 09:40 AM
Replies: 6
Views: 265
Posted By xRadical3
Re: Server script seems stopped - Long callback execution

Use -d3 or -d2 option (https://forum.sa-mp.com/showpost.php?p=1253632&postcount=7) for compiling.
Gives you more information and which line of script crashing server.
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 07:41 AM.


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