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 22/09/2020, 10:17 AM
Replies: 5
Views: 150
Posted By xRadical3
Re: Which callback would work?

Also don't loop all players in OnPlayerUpdate.
public OnPlayerUpdate(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, range, x, y, z))
{
// open gate
}
return 1;
}
Forum: Scripting Help 22/09/2020, 06:01 AM
Replies: 5
Views: 150
Posted By xRadical3
Re: Which callback would work?

If the problem is rotation, you can use this function by adri1.
It works well.
https://forum.sa-mp.com/showpost.php?p=2915178&postcount=413
Forum: Scripting Help 21/09/2020, 06:09 AM
Replies: 7
Views: 207
Posted By xRadical3
Re: Vehicle Parking

Try this:
//under OnVehicleSpawn

foreach(new i : Player)
{
if(IsVehicleOwner(i, vehicleid)) //Check if the vehicle has any owner
{
SetVehiclePos(vehicleid,...
Forum: Scripting Help 20/09/2020, 01:10 PM
Replies: 7
Views: 207
Posted By xRadical3
Re: Vehicle Parking

My bad.
Just replace vehicle2 with vehicleid2.
Forum: Scripting Help 20/09/2020, 01:07 PM
Replies: 14
Views: 137
Posted By xRadical3
Re: Unknown command Textures Studio

But I still prefer to use Wamp or XAMPP because it is automatic and easy to install and not takes a lot of time. ::)
And just one click is needed to start the services. :lol:
Forum: Scripting Help 20/09/2020, 07:20 AM
Replies: 14
Views: 137
Posted By xRadical3
Re: Unknown command Textures Studio

No I can not. You just have to make sure the plugins are loaded correctly. Try to download msvcp100.dll, etc. and put it in the root folder.
Forum: Scripting Help 20/09/2020, 07:01 AM
Replies: 14
Views: 137
Posted By xRadical3
Re: Unknown command Textures Studio

Texture Studio does not require MySQL.
You need WampServer or Xampp to connect to MySQL.
Forum: Scripting Help 20/09/2020, 06:48 AM
Replies: 14
Views: 137
Posted By xRadical3
Re: Unknown command Textures Studio

Server plugins did not load because you do not have msvcp100, msvcr100 ...
Install Microsoft Visual C++ redistributable packages.
Forum: Scripting Help 20/09/2020, 06:41 AM
Replies: 7
Views: 207
Posted By xRadical3
Re: Vehicle Parking

You should destroy old vehicle then recreate it.

CMD:park(playerid, params[])
{
new vehicleid = GetPlayerVehicleID(playerid), id = VehicleInfo[vehicleid][vID];

if(!vehicleid ||...
Forum: Scripting Help 20/09/2020, 06:23 AM
Replies: 2
Views: 66
Posted By xRadical3
Re: How to convert strcmp to zcmd?

CMD:engine(playerid, params[]) {
if (IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
new vehicleid;
new engine, lights, alarm, doors,...
Forum: Scripting Help 17/09/2020, 08:01 PM
Replies: 10
Views: 315
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: 10
Views: 315
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: 141
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: 218
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: 89
Posted By xRadical3
Forum: Scripting Help 04/09/2020, 08:15 AM
Replies: 4
Views: 168
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: 246
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: 151
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: 97
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: 120
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: 125
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: 216
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: 216
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: 216
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.
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 04:06 PM.


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