SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 146
Search took 0.01 seconds.
Search: Posts Made By: VVWVV
Forum: Discussion 09/10/2018, 12:11 PM
Replies: 9
Views: 239
Posted By VVWVV
Re: Ecounter a problem before

Here's https://github.com/pawn-lang/YSI-Includes/tree/5.x
Forum: Scripting Help 24/09/2018, 10:17 PM
Replies: 7
Views: 120
Posted By VVWVV
Re: undefined symbol

I think you just need to pass a string.


CreateLootsZombie("String",fPos[0],fPos[1],fPos[2]);
Forum: Scripting Help 24/09/2018, 10:11 PM
Replies: 7
Views: 120
Posted By VVWVV
Re: undefined symbol

Get rid of the square brackets when calling functions.

Right code:
CreateLootsZombie(item,fPos[0],fPos[1],fPos[2]);
Forum: Scripting Help 24/09/2018, 10:07 PM
Replies: 4
Views: 126
Posted By VVWVV
Re: Help with Y_Bits

The first code is correct to use.
Forum: Scripting Help 24/09/2018, 05:51 PM
Replies: 13
Views: 234
Posted By VVWVV
Re: Onplayerdeath actors

1) Use GetPlayerFacingAngle to get the player's rotation. This rotation must be passed when CreateActor function is called.
Example:

new Float:angle;
GetPlayerFacingAngle(playerid, angle);...
Forum: Scripting Help 24/09/2018, 05:10 PM
Replies: 13
Views: 234
Posted By VVWVV
Re: Onplayerdeath actors

Is there the 'pSkin' function in the code?



Use GetPlayerPos to get player's position.


new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
Forum: Scripting Help 24/09/2018, 05:03 PM
Replies: 13
Views: 234
Posted By VVWVV
Re: Onplayerdeath actors

This code will not work because the first three parameters are incorrectly passed.
CreateActor function (https://wiki.sa-mp.com/wiki/CreateActor)
CreateActor(pSkin(playerid), x, y, z, 0.0 /*...
Forum: Scripting Help 24/09/2018, 04:36 PM
Replies: 2
Views: 87
Posted By VVWVV
Re: Server Crashes

Before writing something into the file you must check its status because it might not be opened; and after working with the file you must close it to avoid some crashes.

Example:

new File:fp =...
Forum: Plugin Development 23/09/2018, 10:28 PM
Replies: 2
Views: 371
Posted By VVWVV
Forum: Includes 23/09/2018, 12:32 PM
Replies: 1,023
Views: 218,672
Posted By VVWVV
Re: Nex-AC - Anticheat system

We include it again because the library updates an unique number.
Forum: Scripting Help 22/09/2018, 05:54 PM
Replies: 12
Views: 362
Posted By VVWVV
Re: y_timers question

Y_Less, does the library have an implementation for hooked timers?

Example:

ptask foo[1000](playerid) { /*code*/ }
hook ptask foo[1000](playerid) { /*code*/ }
Forum: Scripting Help 22/09/2018, 05:23 PM
Replies: 4
Views: 124
Posted By VVWVV
Re: public OnPlayerDeath(playerid, killerid, reason)

The reason isn't an array. You need use GetWeaponName (https://wiki.sa-mp.com/wiki/GetWeaponName) to get weapon name.
Forum: Scripting Help 22/09/2018, 04:41 PM
Replies: 12
Views: 362
Posted By VVWVV
Re: y_timers question

This is not implemented yet.
Forum: Scripting Help 22/09/2018, 04:34 PM
Replies: 5
Views: 113
Posted By VVWVV
Re: YSI\y_hooks doesn`t work.

The library updates the unique number for all functions when you include it again.
Forum: Scripting Help 22/09/2018, 04:28 PM
Replies: 5
Views: 113
Posted By VVWVV
Re: YSI\y_hooks doesn`t work.

Hm... Try to include the library before the function definition.


#include <YSI\y_hooks>
hook OnPlayerConnect(playerid)
{
// code..
}
Forum: Scripting Help 22/09/2018, 04:16 PM
Replies: 5
Views: 113
Posted By VVWVV
Re: YSI\y_hooks doesn`t work.

Did you write this function in the same file?
Forum: Scripting Help 21/09/2018, 05:29 PM
Replies: 10
Views: 198
Posted By VVWVV
Re: NPC chase the nearest player

This fork of the standalone foreach library (https://github.com/Open-GTO/foreach) declares the popular iterators - Player, Bot (NPC), Actor, Vehicle, etc.
Forum: Everything and Nothing 21/09/2018, 05:23 PM
Replies: 49
Views: 1,863
Posted By VVWVV
Re: Do you like the new Chrome design?

The design is so cool. They want to use only one single design style in all their applications (search engine, browser, e-mail, etc.) However, I don't use it because G-company sends a lot of personal...
Forum: Scripting Help 21/09/2018, 05:06 PM
Replies: 4
Views: 108
Posted By VVWVV
Re: Help me about array

You have one dimension array, so you don't need to use the square brackets in the sizeof operator. I also recommend that you use a 'static const' array to get the size of the string.

...
Forum: Everything and Nothing 11/09/2018, 04:14 PM
Replies: 80
Views: 4,235
Posted By VVWVV
Forum: General 03/09/2018, 02:50 PM
Replies: 25
Views: 2,849
Posted By VVWVV
Re: Forum Enhancer

Good job!

P.S.: Verify).
Forum: Русский/Russian 21/06/2018, 05:45 PM
Replies: 15,810
Views: 2,212,310
Posted By VVWVV
Re: Скриптинг курилка

Быстрее потому, что у компиляторов C и C++ есть хороший оптимизатор, да и код выполняется сразу через процессор, а не через интерпретатор.
Forum: Русский/Russian 04/03/2018, 11:59 AM
Replies: 3
Views: 1,160
Posted By VVWVV
Re: Видимость объектов

Выставить нормальную дистанцию для каждого объекта при создании. Таким образом, стример будет выгружать объекты, которые не видны игроку.
Forum: Includes 03/02/2018, 12:00 PM
Replies: 1,023
Views: 218,672
Posted By VVWVV
Re: Nex-AC - Anticheat system

Okay.

I think the problem isn't in the library because it doesn't use the code (i.e. emit instruction or/and arrays without size) that could cause this error. You need to check the code in your...
Forum: Русский/Russian 03/02/2018, 10:50 AM
Replies: 15,810
Views: 2,212,310
Posted By VVWVV
Re: Скриптинг курилка

Все возможно.

Вы хотите ограничить область действия/вызова паблик-функции в пределах одного исполняемого файла?
Showing results 1 to 25 of 146

 

All times are GMT. The time now is 10:27 AM.


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