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: Shinja
Forum: Scripting Help 10/03/2020, 08:04 PM
Replies: 26
Views: 697
Posted By Shinja
Re: SetObjectRot smooth/anim/slow

When we define new x; its already 0 by default
Forum: Scripting Help 10/03/2020, 07:29 PM
Replies: 26
Views: 697
Posted By Shinja
Re: SetObjectRot smooth/anim/slow

If they are also in the array use for(new i; i < sizeof(eObject); i++)
Forum: Scripting Help 10/03/2020, 02:16 PM
Replies: 26
Views: 697
Posted By Shinja
Re: SetObjectRot smooth/anim/slow

Oups yeah i just modified the code and didnt pay attention to that, just make it instead
new eObject[][e_object]
Forum: Scripting Help 10/03/2020, 01:59 PM
Replies: 14
Views: 463
Posted By Shinja
Re: [MySQL] Not saving progress

Thats not complete, WHERE `ID` = %d LIMIT 1 is missing here, u should debug it like this print(DB_Query); no need printf again
I suspect your mistake is here.
Are you getting...
Forum: Scripting Help 10/03/2020, 01:33 PM
Replies: 26
Views: 697
Posted By Shinja
Re: SetObjectRot smooth/anim/slow

CreateDynamicObject will return the object id so you must add a variable to stock the id :

enum e_object
{
ID, // ID is the not model: ID = CreateDynamicObject(model, blabla);
model,
...
Forum: Scripting Help 03/03/2020, 10:04 PM
Replies: 1
Views: 133
Posted By Shinja
Re: What's the wrong here?

Can you explain what are you trying to do?
Anyway i think you must separate the checks from the keys check
if(newkeys & KEY_CROUCH) // LINE 79
{
if(IsPlayerInAnyVehicle(playerid) &&...
Forum: Scripting Help 03/03/2020, 06:14 PM
Replies: 6
Views: 191
Posted By Shinja
Re: Closest hospital spawn

I mean, where the code is located not the position. Regarding the code, i assume that the problem is in GetPlayerDistanceFromPoint, it doesnt get from the postion where you die but some other...
Forum: Scripting Help 03/03/2020, 05:50 PM
Replies: 6
Views: 191
Posted By Shinja
Re: Closest hospital spawn

The code looks fine, but where is it located?
Forum: Scripting Help 16/09/2018, 10:49 PM
Replies: 9
Views: 746
Posted By Shinja
Re: ID 0 Bug

Show those funcs

Where does the player teleport
Forum: Scripting Help 14/09/2018, 11:19 AM
Replies: 6
Views: 294
Posted By Shinja
Re: Multidimensional Array

new textdrawid = -1;
for(new i, j = sizeof Msgs; i<j; i++)
{
if(!strfind(Msgs[i][0], msg, true)) continue;
textdrawid = Msgs[i][1];
break;
}
if(textdrawid == -1) // no similiar msg found
Forum: Scripting Help 13/09/2018, 11:10 AM
Replies: 18
Views: 709
Posted By Shinja
Re: Callback problem

This code looks fine, did you find a problem with it?
Forum: Scripting Help 12/09/2018, 11:53 PM
Replies: 18
Views: 709
Posted By Shinja
Re: Callback problem

This loop is not optimized, it loops for MAX_PLAYERS time which is 1000 if not changed.
for(new playerid = 0, j = GetPlayerPoolSize(); playerid <= j; playerid++) is alot better, it loops only...
Forum: Scripting Help 12/09/2018, 12:16 AM
Replies: 3
Views: 180
Posted By Shinja
Re: Message modes

I dont see any mistake in this code, does it work fine with you?
Forum: Scripting Help 10/09/2018, 11:59 AM
Replies: 3
Views: 211
Posted By Shinja
Re: settimer in a callback that uses player definition.

You need to forward the functions

You will get error undefined symbol (playerid) in Test_One
So you'd better use SetTimerEx

new TimerTest[MAX_PLAYERS];

forward Test_One(playerid);
public...
Forum: Scripting Help 09/09/2018, 09:28 PM
Replies: 9
Views: 1,043
Posted By Shinja
Forum: Scripting Help 09/09/2018, 09:26 PM
Replies: 12
Views: 860
Posted By Shinja
Re: Textdraw editor problem

Dont type .dll if you are hosting on Windows, just plugins tde
Forum: Scripting Help 09/09/2018, 12:58 PM
Replies: 11
Views: 603
Posted By Shinja
Re: Break; function error

Are you sure the variable is working like it suppose to, in that way HealthInfo[id][HealthLevel] might me considered as a string
Forum: Scripting Help 09/09/2018, 12:54 PM
Replies: 20
Views: 1,523
Posted By Shinja
Re: Mission label

You must use usebox
Forum: Scripting Help 09/09/2018, 12:39 PM
Replies: 5
Views: 347
Posted By Shinja
Re: /stats

CMD:stats(playerid, params[])
{
new id;
if(isnull(params)) format(params, 10, "%d", playerid);
if(sscanf(params, "i", id)) return SCM(playerid,-1, "* USAGE "ORANGE_RED"/stats [playername/id]...
Forum: Scripting Help 09/09/2018, 12:35 PM
Replies: 5
Views: 375
Posted By Shinja
Re: SendDeathMeesage

public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID)
{
SendDeathMessage(killerid, playerid, reason);
}
return 1;
}
Forum: Scripting Help 09/09/2018, 12:27 PM
Replies: 11
Views: 603
Posted By Shinja
Re: Break; function error

Show us how you are defining PlayerInfo and the enum inside it aswell
Forum: Scripting Help 09/09/2018, 12:16 PM
Replies: 9
Views: 1,043
Posted By Shinja
Re: OnPlayerClickPlayerTextdraw

Debug

public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
printf("playertextid = %d", playeridtextid);
for(new i=0; i<5; i++)
{
printf("TDArtifactIcon[%d][%d] =...
Forum: Scripting Help 09/09/2018, 01:45 AM
Replies: 20
Views: 1,523
Posted By Shinja
Re: Mission label

http://forum.sa-mp.com/showthread.php?t=376758
Forum: Scripting Help 08/09/2018, 07:44 PM
Replies: 8
Views: 701
Posted By Shinja
Re: Using some code lines to detect a cheat..?

Use triggerfinger script only for Deagle, its kinda useless with other weapons and people are using it specially with deagle.

Can you show us the code?
Forum: Scripting Help 08/09/2018, 07:40 PM
Replies: 4
Views: 272
Posted By Shinja
Re: Textdraw Issue

You dont need to loop at each playerconnect, simply create the player's textdraw when he connects and destroy it when he disconnect

//OnPlayerConnec
InfectionLabel[playerid] =...
Showing results 1 to 25 of 500

 

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


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