SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 363
Search took 0.01 seconds.
Search: Posts Made By: SiaReyes
Forum: Scripting Help 25/01/2020, 09:43 PM
Replies: 15
Views: 174
Posted By SiaReyes
Re: Problem IDs

No, Iter_free will fill the first empty slots(unoccupied slots), if you delete id 2 and create a new one, and ID 1 and ID 3 are occupied, then it will fill id 2. Then if you create another actor it...
Forum: Scripting Help 25/01/2020, 09:31 PM
Replies: 15
Views: 174
Posted By SiaReyes
Re: Problem IDs

Iter_Free is mostly used when you don't use auto_increment.
It is used to get the invalid slots(empty) and stores the value in that slot.

if you make 2 actors, like ID 1 and 2. Then you delete id...
Forum: Scripting Help 25/01/2020, 09:07 PM
Replies: 15
Views: 174
Posted By SiaReyes
Re: Problem IDs

for(new i = 0; i < MAX_ACTORS; i++)
{
if(Iter_Contains(Actors, i))
{
format(msg, sizeof(msg), "%sAktorID : %d\n", msg, i);
}
}

Try this
Forum: Scripting Help 25/01/2020, 08:53 PM
Replies: 15
Views: 174
Posted By SiaReyes
Re: Problem IDs

Check in Actors table that it has 8th column or 10th column after 7th.
Forum: Scripting Help 25/01/2020, 07:48 PM
Replies: 3
Views: 32
Posted By SiaReyes
Re: Problem with mysql

what's the problem actually? Connection not established?
Forum: General 25/01/2020, 07:45 PM
Replies: 2,969
Views: 535,021
Posted By SiaReyes
Re: Suggestions for future SA:MP updates

And yet none of these suggestions were added!
Forum: Scripting Help 25/01/2020, 06:23 PM
Replies: 3
Views: 59
Posted By SiaReyes
Re: Voice chat in SAMP - possibility?

This question was raised before 10 years:

https://forum.sa-mp.com/showthread.php?t=90552

btw, i want to experience 30 players talking in one voice channel.

How it would be? "That the...
Forum: Scripting Help 25/01/2020, 06:13 PM
Replies: 15
Views: 174
Posted By SiaReyes
Re: Problem IDs

https://pastebin.com/pwqP2iXc

Check this out!

Edit:
Add Iter_Remove in UsunAktora()
Iter_Remove(Actors, aid);
Forum: Scripting Help 25/01/2020, 03:59 PM
Replies: 15
Views: 174
Posted By SiaReyes
Re: Problem IDs

AktorInfo[acount][AktorUID] = CreateActor(AktorInfo[acount][AktorSkinID], AktorInfo[acount][AktorPos_X], AktorInfo[acount][AktorPos_Y], AktorInfo[acount][AktorPos_Z], AktorInfo[acount][AktorPos_A]);...
Forum: Scripting Help 25/01/2020, 02:21 PM
Replies: 3
Views: 53
Posted By SiaReyes
Re: Can't press enter to enter in a building

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_SECONDARY_ATTACK)
{
if(IsPlayerInRangeOfPoint(playerid, 2.5, 1219.9609,-1811.9579, 16.5938))
{
...
Forum: Scripting Help 25/01/2020, 02:17 PM
Replies: 4
Views: 47
Posted By SiaReyes
Re: Help

Since, it's a mission textdraw, Create it as PlayerTextdraw.

btw, Yes you can update the textdraw string.
Create a sample textdraw then you can update it with...
Forum: Scripting Help 25/01/2020, 01:59 PM
Replies: 4
Views: 47
Posted By SiaReyes
Re: Help

You can make them with textdraw editor. I'll provide few textdraw editors, use the one which you are comfortable with.


https://forum.sa-mp.com/showthread.php?t=543002...
Forum: Scripting Help 25/01/2020, 01:03 PM
Replies: 4
Views: 65
Posted By SiaReyes
Re: I need help with player loading in mysql r41-4

https://wiki.sa-mp.com/wiki/MySQL#cache_get_value_index_int


mysql_format(Database, query, sizeof(query), "SELECT pos_X,pos_Y,pos_Z,ID,PinigaiRankose,LastIP FROM `vartotojai` WHERE...
Forum: Scripting Help 25/01/2020, 05:33 AM
Replies: 2
Views: 40
Posted By SiaReyes
Re: detect player's ID and part of name

CMD:get(playerid, params[])
{
new findid;
if(sscanf(params, "u", findid)) return SendClientMessage(playerid, -1, "USAGE: /get (nick/id) - Part of the name / Player ID");...
Forum: Scripting Help 25/01/2020, 03:52 AM
Replies: 2
Views: 59
Posted By SiaReyes
Re: ask change weapon dm

new Weapons[4] = { 33,34,35,36,38 }, Level[MAX_PLAYERS];


public OnPlayerConnect(playerid)
{
Level[playerid] = 0;
return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
Forum: Scripting Help 25/01/2020, 03:38 AM
Replies: 15
Views: 174
Posted By SiaReyes
Re: Problem IDs

new rows = cache_num_rows(), acount = 1;

Set the variable value 1 in WczytajAktora()
Forum: Scripting Help 24/01/2020, 08:06 PM
Replies: 15
Views: 174
Posted By SiaReyes
Re: Problem IDs

Show us code
Forum: Tutorials 24/01/2020, 07:04 PM
Replies: 12
Views: 4,103
Posted By SiaReyes
Re: How to make a weapon shop dialog

https://wiki.sa-mp.com/wiki/IsPlayerInRangeOfPoint




CMD:weaponshop(playerid,params[])
{
if(IsPlayerInRangeOfPoint(playerid, 2.5, x, y, z))
{
...
Forum: Scripting Help 24/01/2020, 06:53 PM
Replies: 4
Views: 71
Posted By SiaReyes
Re: [AJUDA] IsPlayerInRangeOfPoint

Sorry, i edited it check it again!
Forum: Scripting Help 24/01/2020, 06:48 PM
Replies: 4
Views: 71
Posted By SiaReyes
Re: [AJUDA] IsPlayerInRangeOfPoint

new Float:Metros[][3] =
{
{1785.2190, -1379.2650, 15.7578},
{1756.9982, -1943.4391,13.5703}
};


CMD:metro(playerid)
{
for(new i = 0; i < sizeof(Metros); i++)
Forum: Scripting Help 22/01/2020, 06:38 PM
Replies: 10
Views: 192
Posted By SiaReyes
Re: Comparing names in an enum

foreach(new i : Apartments) if(checkpointid == aptInfo[i][apt_cp]) // Check if player is in a garage CP. and get it's ID

if(!strcmp(Name[playerid], aptInfo[i][apt_owner], true)) return...
Forum: Scripting Help 21/01/2020, 06:53 PM
Replies: 3
Views: 121
Posted By SiaReyes
Re: Courier Job Problem!

https://pastebin.com/VBBuAwFm

Check out

Edit: Remove OnPlayerSpawn callback since you remove/reset the player from Job in death itself.
Forum: Scripting Help 19/01/2020, 03:32 PM
Replies: 2
Views: 73
Posted By SiaReyes
Re: help please

if(PlayerInfo[playerid][pPayDayHad] <= 0) return SendClientMessage(playerid, COLOR_WHITE, "{fff700}no have a {00FF00}3{fff700}hours");
Forum: Scripting Help 19/01/2020, 03:16 PM
Replies: 3
Views: 121
Posted By SiaReyes
Re: Courier Job Problem!

put them in [code] tag or use pastebin.
Forum: Filterscripts 18/01/2020, 03:26 PM
Replies: 2
[FilterScript] Private Message System
Views: 291
Posted By SiaReyes
Re: Private Message System

Great Job man!

Few Error Spots:
In Sql:

ALTER TABLE `opms`
.., AUTO_INCREMENT=0; // Should be 0 instead 12.


In Script:
Showing results 1 to 25 of 363

 

All times are GMT. The time now is 09:50 PM.


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