SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 142
Search took 0.00 seconds.
Search: Posts Made By: VVWVV
Forum: Scripting Help 24/09/2018, 11:17 PM
Replies: 7
Views: 286
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, 11:11 PM
Replies: 7
Views: 286
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, 11:07 PM
Replies: 2
Views: 205
Posted By VVWVV
Re: Help with Y_Bits

The first code is correct to use.
Forum: Scripting Help 24/09/2018, 06:51 PM
Replies: 13
Views: 432
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, 06:10 PM
Replies: 13
Views: 432
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, 06:03 PM
Replies: 13
Views: 432
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, 05:36 PM
Replies: 2
Views: 140
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: Includes 23/09/2018, 01:32 PM
Replies: 1,222
Views: 288,196
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, 06:54 PM
Replies: 7
Views: 503
Posted By VVWVV
Re: y_timers question

******, 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, 06:23 PM
Replies: 4
Views: 351
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, 05:41 PM
Replies: 7
Views: 503
Posted By VVWVV
Re: y_timers question

This is not implemented yet.
Forum: Scripting Help 22/09/2018, 05:34 PM
Replies: 5
Views: 225
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, 05:28 PM
Replies: 5
Views: 225
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, 05:16 PM
Replies: 5
Views: 225
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, 06:29 PM
Replies: 10
Views: 421
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, 06:23 PM
Replies: 51
Views: 3,154
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, 06:06 PM
Replies: 4
Views: 197
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: Русский/Russian 21/06/2018, 06:45 PM
Replies: 15,911
Views: 2,368,641
Posted By VVWVV
Re: Скриптинг курилка

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

Выставить нормальную дистанцию для каждого объекта при создании. Таким образом, стример будет выгружать объекты, которые не видны игроку.
Forum: Includes 03/02/2018, 01:00 PM
Replies: 1,222
Views: 288,196
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, 11:50 AM
Replies: 15,911
Views: 2,368,641
Posted By VVWVV
Re: Скриптинг курилка

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

Вы хотите ограничить область действия/вызова паблик-функции в пределах одного исполняемого файла?
Forum: Includes 02/02/2018, 11:50 PM
Replies: 1,222
Views: 288,196
Posted By VVWVV
Re: Nex-AC - Anticheat system

YSI is a collection of PAWN libraries for the server, not a SA:MP plugin. These libraries could be included in your gamemode or in other libraries.

Example:

#include <YSI\y_hooks>
Forum: Includes 02/02/2018, 08:30 PM
Replies: 1,222
Views: 288,196
Posted By VVWVV
Re: Nex-AC - Anticheat system

@OstGot, this problem might be in arrays without size.

Example:

static stock abc[][] = {{}};
abc[0][1000] = 138;
Forum: Русский/Russian 27/01/2018, 08:38 PM
Replies: 15,911
Views: 2,368,641
Posted By VVWVV
Forum: Русский/Russian 24/12/2017, 05:06 PM
Replies: 3
Views: 1,097
Posted By VVWVV
Re: Ассоциативные массивы в pawn

Вот (https://github.com/BigETI/pawn-map)
Showing results 1 to 25 of 142

 

All times are GMT. The time now is 04:22 AM.


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