SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 433
Search took 0.01 seconds.
Search: Posts Made By: PowerF
Forum: Scripting Help 05/08/2020, 10:13 AM
Replies: 6
Views: 90
Posted By PowerF
Re: R33+ to R40

Thank you!
Forum: Scripting Help 05/08/2020, 09:36 AM
Replies: 6
Views: 90
Posted By PowerF
Re: R33+ to R40

This doesn't make it any difference?
+=
I'm pretty sure it does..
Forum: Scripting Help 05/08/2020, 09:26 AM
Replies: 6
Views: 90
Posted By PowerF
Re: R33+ to R40

Yes I'm currently reading that thread, I'm on my process to change everything of cache_get.
I just don't understand how do I do that one.
Forum: Scripting Help 05/08/2020, 09:09 AM
Replies: 6
Views: 90
Posted By PowerF
R33+ to R40

I'm currently converting R33 to R40 and I'm stuck with this.

available_quantity += cache_get_field_content_float( r, "SHARES" );
I don't understand what to change..
Forum: Scripting Help 11/07/2020, 11:44 AM
Replies: 5
Views: 201
Posted By PowerF
Forum: Scripting Help 11/07/2020, 10:22 AM
Replies: 5
Views: 201
Posted By PowerF
Re: Array inded out of bounds

static stock
Float:BusCheckpoints[][3] =
{
{1821.1371, -1888.9108, 13.4906}, {1823.2439, -1927.1042, 13.5161}, {1958.6394, -1932.3710, 13.5192},
{2067.8223, -1932.7881, 13.5349},...
Forum: Scripting Help 11/07/2020, 03:53 AM
Replies: 5
Views: 201
Posted By PowerF
Array inded out of bounds

[10:44:07] [debug] Run time error 4: "Array index out of bounds"
[10:44:07] [debug] Attempted to read/write array element at index 3 in array of size 3
[10:44:07] [debug] AMX backtrace:...
Forum: Scripting Help 28/06/2020, 04:51 AM
Replies: 3
Views: 120
Posted By PowerF
Find player by name

How do I find player by his name?
I know that you can use sscand but i can only make it work with command, i want to search player by name in a function
Forum: Scripting Help 27/06/2020, 03:03 PM
Replies: 3
Views: 87
Posted By PowerF
Re: problem with lock/unlock cars

you're assigning the variable to the player, not vehicle. what do you expect? I suggest downloading some scripts from here, it will help you a lot
Forum: Scripting Help 27/06/2020, 02:52 PM
Replies: 3
Views: 74
Posted By PowerF
Re: Detect new day in server time

yes but not in-game time, server time. I mean the real time.
Forum: Scripting Help 27/06/2020, 02:24 PM
Replies: 3
Views: 74
Posted By PowerF
Detect new day in server time

I know that you can detect server time using gettime, but how do I check if a day passes in server time? for example, I want to reset a variable every a day passes.
Forum: Scripting Help 22/06/2020, 10:48 AM
Replies: 2
Views: 104
Posted By PowerF
Forum: Scripting Help 21/06/2020, 05:31 PM
Replies: 2
Views: 104
Posted By PowerF
question about random

Do random gets executed even after I declared a variable on it, for example:

prob = random(100);
printf("%d", prob);

does it actually call the random itself 2 times or just one when declaring...
Forum: Scripting Help 10/06/2020, 05:48 AM
Replies: 2
Views: 113
Posted By PowerF
Count mysql result

so, I wanted to limit items owned by a player, but the problem is, `items` is from different table and I'm confsused

so for example the query is
SELECT * FROM `ITEMS` WHERE `pID` = %d
where pID...
Forum: Scripting Help 04/06/2020, 06:06 PM
Replies: 5
Views: 159
Posted By PowerF
Re: Get user's info from a table

Thank you! is there anyway I can make new line for next rows(incase if there is more than 1 rows)
Forum: Scripting Help 04/06/2020, 05:11 PM
Replies: 5
Views: 159
Posted By PowerF
Re: Get user's info from a table

Yes I need more info, I'm currently using R33+(R39)
Forum: Scripting Help 04/06/2020, 04:32 PM
Replies: 5
Views: 159
Posted By PowerF
Get user's info from a table

So i have this code

INSERT INTO `example` (`pID`, `var1`, `var2`) VALUES (%d, %d, %d) ", pID[ playerid ], var1, var2) );

how do i show that in a command, for example i want to make a command...
Forum: Scripting Help 31/05/2020, 09:06 PM
Replies: 2
Views: 119
Posted By PowerF
Forum: Scripting Help 31/05/2020, 08:02 PM
Replies: 2
Views: 119
Posted By PowerF
argument type mismatch (argument 1)

stock CreateRobberyCheckpoint( szName[ 32 ], iRobValue, Float: fX, Float: fY, Float: fZ, Float: rotation, worldid )
{
new Float: offsetX, Float: offsetY;
new rID = Iter_Free( RobberyCount );
...
Forum: Scripting Help 30/05/2020, 08:27 PM
Replies: 5
Views: 186
Posted By PowerF
Forum: Scripting Help 30/05/2020, 06:40 PM
Replies: 5
Views: 186
Posted By PowerF
Re: warning 224: indeterminate array size in "sizeof" expression (symbol "max_len")

The error is when I placed the example code in OnPlayerText..
Forum: Scripting Help 30/05/2020, 06:30 PM
Replies: 0
Views: 82
Posted By PowerF
Accessing next level value + name

Is there anyway I can access the data of the player's next level?
stock GivePlayerSeasonalXP( playerid, Float: default_xp )
{
if ( ! IsPlayerConnected( playerid ) || ! IsPlayerLoggedIn( playerid...
Forum: Scripting Help 30/05/2020, 10:48 AM
Replies: 5
Views: 186
Posted By PowerF
warning 224: indeterminate array size in "sizeof" expression (symbol "max_len")

I tried to use https://forum.sa-mp.com/showthread.php?t=669623
but it gives me errors when i compiled it
warning 224: indeterminate array size in "sizeof" expression (symbol "max_len")
The code is...
Forum: Scripting Help 24/05/2020, 08:12 AM
Replies: 1
Views: 79
Posted By PowerF
Detect sniper camera

Can someone provide an example how to use GetPlayerCameraTarget player when player is aiming with sniper?
because GetPlayerTargetPlayer doesn't call it....
Forum: Scripting Help 11/05/2020, 12:00 PM
Replies: 1
Views: 89
Posted By PowerF
GetTargetPlayer with sniper?

can someone give me an example how to use this function?
https://wiki.sa-mp.com/wiki/GetPlayerCameraTargetPlayer
say that I wanted to detect if player is aiming with the sniper on another player
Showing results 1 to 25 of 433

 

All times are GMT. The time now is 04:51 PM.


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