SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 20 of 20
Search took 0.00 seconds.
Search: Posts Made By: nikotragedy
Forum: Scripting Help 06/12/2018, 01:21 AM
Replies: 1
Views: 181
Posted By nikotragedy
How to fetch and store multiple values from MySQL

Hey guys!

I've been thinkin about doing something like (I'm using pseudo code):

run query
store in cache the results
for(var i = 0; i < num_rows_cache; i++) {
array[i] =...
Forum: Scripting Help 02/12/2018, 05:25 PM
Replies: 0
Views: 139
Posted By nikotragedy
Factory method while saving player state, yes or no?

Hey guys!
I have a specific include for database handling and I'm wondering if I should save each field (position, including x pos, z, y, a, interior, vw; maybe another method for the money, and so...
Forum: Tools and Files 30/11/2018, 01:20 AM
Replies: 27
[Tool/Web/Other] Pawn Syntax for Atom
Views: 15,590
Posted By nikotragedy
Re: Pawn Syntax for Atom

Does anyone know how to build the amx in a different folder than the project master?
Forum: Filterscripts 09/04/2017, 07:52 AM
Replies: 74
Views: 36,519
Posted By nikotragedy
Re: Ultimate Creator - object, vehicle, actor editor (and more)

It's just me or this is not working? I press any button and it doesn't do anything (I'm rcon logged and into edition mode)
Forum: Scripting Help 09/04/2017, 04:16 AM
Replies: 1
Views: 244
Posted By nikotragedy
Change the view from an interior mapping

Hey guys!
I'm kinda new to mapping and I was wondering how this guy (https://www.youtube.com/watch?v=QM5RqFKH1D8)was able to change the view of the windows. I mean, if you look outside you'll see...
Forum: Scripting Help 06/04/2017, 05:42 PM
Replies: 2
Views: 303
Posted By nikotragedy
Forum: Scripting Help 06/04/2017, 05:38 PM
Replies: 2
Views: 303
Posted By nikotragedy
I need ideas to build this map [Looking for a certain object]

I want to make a circular path so cars can enter there, park on the front of the house and then leave.

http://i.imgur.com/6ehayBw.jpg

Here is what I have so far, but I can't figure out how can...
Forum: Scripting Help 30/03/2017, 07:55 AM
Replies: 5
Views: 366
Posted By nikotragedy
Re: I need help with my UCP

I solved almost anything but I'm having troubles now with the output of the hashed pw.

Ex.:

Original hash: b5021bbda761e7b6cde516f616a09f2e3ea5cb3dc48ccbd37a8deeda94b56562
Hash generated on...
Forum: Scripting Help 30/03/2017, 06:07 AM
Replies: 5
Views: 366
Posted By nikotragedy
Re: I need help with my UCP

That's what I don't know how to do it. And I found nothing on the SAMP wiki :(

I'm storing a MD5/SHA1 (pInfo[playerid][password]) into my DB, what's next?
Forum: Scripting Help 30/03/2017, 05:27 AM
Replies: 5
Views: 366
Posted By nikotragedy
I need help with my UCP

I'm creating a UCP for my RP server. I can insert stuff into my DB but now I'm not sure how can I decrypt or use the hashed pw.
I've tried with md5 and SHA1 but it's not working and now I'm not sure...
Forum: Scripting Help 24/03/2017, 06:10 PM
Replies: 5
Views: 688
Posted By nikotragedy
Respuesta: Re: Retrieving data from multiple rows and printing [Help]

Ok, now I'm not getting the row index 0, but I'm trying to make a faction list command. I can actually do that but I'm having troubles with deleted rows. Ex.:

Factions table:

ID | NAME...
Forum: Scripting Help 24/03/2017, 05:13 PM
Replies: 5
Views: 688
Posted By nikotragedy
Respuesta: Retrieving data from multiple rows and printing [Help]

Help :( I don't know why I'm getting this invalid row index. I know It has something to do with deleted rows, but I need to be able to delete them.
Forum: Scripting Help 24/03/2017, 07:01 AM
Replies: 5
Views: 688
Posted By nikotragedy
Respuesta: Retrieving data from multiple rows and printing [Help]

I think I have found where is my problem, but I can't find a solution.
While I'm trying to load factions I'm getting:

[02:47:46] [plugins/mysql] cache_get_value_name_int: invalid row index '0'...
Forum: Scripting Help 24/03/2017, 06:16 AM
Replies: 5
Views: 688
Posted By nikotragedy
Retrieving data from multiple rows and printing [Help]

I'm working on a simple faction system.
I want to make a cmd which retrieves every faction and its ID.

I was thinking in something like

while(SOMETHING) {
SendClientMessage(FACTIONS)
}
...
Forum: Scripting Help 17/03/2017, 07:58 AM
Replies: 1
Views: 390
Posted By nikotragedy
[MySQL R41-2] Is there any way to retrieve a bool value from my DB?

I have a bool variable which determines if the player is either dead or alive, but I have no idea how can I obtain those values.

I was thinking about converting the boolean into a int, but that...
Forum: Scripting Help 04/03/2017, 07:05 PM
Replies: 5
Views: 668
Posted By nikotragedy
Re: [MySQL] Problem trying to load weapons

Now I'm not getting errors while trying to compile but the game is not updating any data, just saving the weapons and not loading them, my code:

UpdatePlayerData(playerid, reason)
{
if...
Forum: Scripting Help 04/03/2017, 06:04 PM
Replies: 5
Views: 668
Posted By nikotragedy
Re: [MySQL] Problem trying to load weapons

Tried with that last code, now I'm not getting any error except the tag mismatch from this line

for(new i, j = cache_get_row_count(g_SQL); i < j; i++)
Forum: Scripting Help 04/03/2017, 04:19 PM
Replies: 5
Views: 668
Posted By nikotragedy
Re: [MySQL] Problem trying to load weapons

Replaced cache_get_value_int function with cache_get_value_index_int and I'm still getting tag mismatch error :(
Forum: Scripting Help 04/03/2017, 04:14 PM
Replies: 5
Views: 668
Posted By nikotragedy
Wink [MySQL] Problem trying to load weapons

Hey guys, I was following this tutorial: http://forum.sa-mp.com/showthread.php?t=505081
And now I managed to get player weapons saved into a db but I'm having some troubles with the code (Mostly...
Forum: Tutorials 04/03/2017, 08:18 AM
Replies: 51
Views: 28,004
Posted By nikotragedy
Re: Saving weapon data (MySQL)

warning 213: tag mismatch
warning 213: tag mismatch
warning 213: tag mismatch

forward OnLoadPlayerWeapons(playerid);
public OnLoadPlayerWeapons(playerid)
{
new
weaponid,
ammo;
Showing results 1 to 20 of 20

 

All times are GMT. The time now is 10:52 PM.


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