SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.01 seconds.
Search: Posts Made By: ReVo_
Forum: Scripting Help 12/10/2013, 05:24 PM
Replies: 4
Views: 343
Posted By ReVo_
Re: OnDialogResponse

U missed some { } anyway

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_WEPS1)
{
if(response)
{
if (listitem == 0)
{
Forum: Scripting Help 06/10/2013, 04:51 PM
Replies: 6
Views: 455
Posted By ReVo_
Re: check player online

You can use OnPlayerDisconnect and OnPlayerConnect to update your variable, and then use the timer just to show the sendclientmessage.


new onlinePlayers = 0;

public OnPlayerConnect(playerid)...
Forum: Scripting Help 23/09/2013, 08:53 PM
Replies: 14
Views: 912
Posted By ReVo_
Re: About the TextDraw System when near to target.

Its a gametext

http://wiki.sa-mp.com/wiki/GameTextForPlayer

Then use

http://wiki.sa-mp.com/wiki/OnPlayerPickUpPickup

to show the gametext
Forum: Scripting Help 16/09/2013, 07:09 PM
Replies: 6
Views: 438
Posted By ReVo_
Re: little help with zcmd

Max input size is 128 in all cases.
Doesn't matter what is
Forum: Scripting Help 08/09/2013, 12:34 PM
Replies: 3
Views: 294
Posted By ReVo_
Re: Can't read from file Problem

Maybe you compile the script w/ another Pawn and it dont have the include. Open pawn.exe (where you put the include) then open the file and compile.
Forum: Tools and Files 08/09/2013, 11:18 AM
Replies: 10
[Tool/Web/Other] Basic web framework (PHP)
Views: 2,083
Posted By ReVo_
Re: Basic web framework (PHP)

I cant understand how this can help the scripter. By surfing in the code i dont find anything of useful at all.

Maybe i'm wrong, we will see..

A framework should provide a simple way to do the...
Forum: Plugin Development 04/09/2013, 01:21 PM
Replies: 3,613
Views: 538,703
Posted By ReVo_
Re: FCNPC - Fully Controllable NPC v0.1 Beta 1

Sure, but if a player kill a NPC and the gamemode don't check if the MPC is spawned this same problem can happen right? Imagine an NPC which shouldn't be killed (w/o godmode) but a player has found a...
Forum: Plugin Development 03/09/2013, 01:56 PM
Replies: 3,613
Views: 538,703
Posted By ReVo_
Re: FCNPC - Fully Controllable NPC v0.1 Beta 1

-- Edit: I put GoTo and Spawn and this cause this issues, with Spawn and GoTo seems to work ok, its a bit strange anyway, it cause problems if the code was more complex.

When i restart the server...
Forum: Plugin Development 21/08/2013, 12:39 PM
Replies: 396
Views: 88,417
Posted By ReVo_
Re: MySQL & PostgreSQL Plugin

I think he talk about prepared statements in general; if you dont know what prepared statements are:
this can give an idea to you: http://en.wikipedia.org/wiki/Prepared_statement this too...
Forum: Plugin Development 15/08/2013, 01:33 PM
Replies: 363
Views: 93,773
Posted By ReVo_
Re: Gamemode SDK for C/C++ (GDK)

SDK folder is always nedded here right?

Anyway, when i try to make my project in linux i get this error:

SDK/amxplugin.o: File or directory not found (not exists)
Forum: Scripting Help 13/08/2013, 05:30 PM
Replies: 11
Views: 1,196
Posted By ReVo_
Re: Sscanf disconnect and reconnect problem

Post just one command please, just to see if you do something wrong.
Forum: Scripting Help 04/08/2013, 12:40 AM
Replies: 3
Views: 428
Posted By ReVo_
Re: INI string

You use Y_INI to manage your files? (http://forum.sa-mp.com/showthread.php?t=175565)

Use http://wiki.sa-mp.com/wiki/ShowPlayerDialog to show a dialog to the player (use style DIALOG_STYLE_INPUT...
Forum: Scripting Help 01/08/2013, 01:47 PM
Replies: 12
Views: 656
Posted By ReVo_
Re: dm zone labels

Use fremove to delete a file. http://wiki.sa-mp.com/wiki/Fremove

Anyway you create your labels with the dynamic function?
Forum: Scripting Help 01/08/2013, 01:42 PM
Replies: 4
Views: 368
Posted By ReVo_
Re: Help with crashes?

Create a file called pawn.cfg inside your pawno folder, inside it write -d3

Compile again your gamemode
Forum: Scripting Help 01/08/2013, 01:37 PM
Replies: 12
Views: 656
Posted By ReVo_
Re: dm zone labels

I think you have a id-collision problem.

Post your moveradar code anyway.
Forum: Scripting Help 01/08/2013, 01:32 PM
Replies: 4
Views: 368
Posted By ReVo_
Re: Help with crashes?

When the server crash?
Compile your gamemode with -d3, so crashdetect report more info.
Forum: Scripting Help 01/08/2013, 01:27 PM
Replies: 12
Views: 656
Posted By ReVo_
Re: dm zone labels

You first reset the value of timpl to 0, then you destroy the label.. the code will destroy the label-id 0.

Remove this line:


timcr[playerid] = 0;


And if you need to...
Forum: Scripting Help 01/08/2013, 01:04 AM
Replies: 4
Views: 720
Posted By ReVo_
Re: New foreach compile problem

New foreach use this syntax:

foreach(new {var_name}:{iteration})


You use this too?
Forum: Scripting Help 01/08/2013, 12:58 AM
Replies: 15
Views: 1,244
Posted By ReVo_
Re: Load Houses

http://wiki.sa-mp.com/wiki/Debugging

Where the code stops to work?

EDIT:


new fstring[128],file[128],string[256]; //The string for the file [format]
format(fstring, 128,...
Forum: Scripting Help 01/08/2013, 12:49 AM
Replies: 12
Views: 656
Posted By ReVo_
Re: dm zone labels

Code. Thanks.
Forum: Scripting Help 01/08/2013, 12:47 AM
Replies: 4
Views: 325
Posted By ReVo_
Forum: Scripting Help 01/08/2013, 12:41 AM
Replies: 8
Views: 401
Posted By ReVo_
Re: Compile error

Make sure you open the right PAWNO.

Open the pawno.exe inside the folder where you put your include.
Forum: Scripting Help 01/08/2013, 12:39 AM
Replies: 15
Views: 1,244
Posted By ReVo_
Re: Load Houses

Houses/%d.ini

Your length is 12.

12 + (4 (if your max id is 1000)) + 1

Use 17 as size.

Anyway, be more specific but i'm sure your problem is fstring size. (If you debug your code first of...
Forum: Scripting Help 01/08/2013, 12:30 AM
Replies: 5
Views: 445
Posted By ReVo_
Re: Don't want player to go past a point?

A bit more logic:

When the player log in as admin you remove bounds

SetPlayerWorldBounds (playerid, 20000.0000, -20000.0000, 20000.0000, -20000.0000);

inside...
Forum: Scripting Help 01/08/2013, 12:28 AM
Replies: 2
Views: 327
Posted By ReVo_
Re: how put make checkpoint here?

SetPlayerCheckpoint (playerid, 826.7159,-1353.6890,13.5368, 3.0);

http://wiki.sa-mp.com/wiki/SetPlayerCheckpoint
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 01:26 AM.


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