SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 99
Search took 0.01 seconds.
Search: Posts Made By: SapMan
Forum: Scripting Help 14/10/2018, 10:05 PM
Replies: 13
Views: 301
Posted By SapMan
Forum: Scripting Help 14/10/2018, 08:20 PM
Replies: 13
Views: 301
Posted By SapMan
Re: warning 224: indeterminate array size in "sizeof" expression (symbol "maxlength")

I have not modified it "OnPlayerText (playerid, text [])" so it is in my game mode. When I use "TestText (text);" in the callback "OnPlayerText", I throw away the error that I previously published.
Forum: Scripting Help 14/10/2018, 07:12 PM
Replies: 13
Views: 301
Posted By SapMan
Forum: Scripting Help 14/10/2018, 07:09 PM
Replies: 13
Views: 301
Posted By SapMan
Re: warning 224: indeterminate array size in "sizeof" expression (symbol "maxlength")

When I use this in "OnPlayerText" it gives me error "error 047: array sizes do not match, or destination array is too small"

public OnPlayerText(playerid, text[])
{
TestText(text);
return 0;
}...
Forum: Scripting Help 14/10/2018, 04:23 PM
Replies: 13
Views: 301
Posted By SapMan
Re: warning 224: indeterminate array size in "sizeof" expression (symbol "maxlength")

When I put it like that, it does not give me warnings. Why?


TestText(text[90])
{
strreplace(text, "test_01", "replace_01");
strreplace(text, "test_02", "replace_02");
return 1;
}
Forum: Scripting Help 14/10/2018, 03:50 AM
Replies: 13
Views: 301
Posted By SapMan
Forum: Scripting Help 13/10/2018, 11:42 PM
Replies: 13
Views: 301
Posted By SapMan
warning 224: indeterminate array size in "sizeof" expression (symbol "maxlength")

Why is this happening? I have not found any solution for this.


CMD:test(playerid, params[])
{
new text[90];
if(sscanf(params, "s[90]", text)) return SendClientMessage(playerid,-1, "/test...
Forum: Scripting Help 06/10/2018, 05:29 PM
Replies: 1
Views: 83
Posted By SapMan
CreateActor problem.

I'm doing a game mode "protect the president", and in the selection to choose the skin I have "CreateActor", but only the actor is shown when the player connects "OnPlayerRequestClass", then when I...
Forum: Scripting Help 30/09/2018, 08:44 PM
Replies: 4
Views: 94
Posted By SapMan
Re: move camera

The video does not explain, it only shows what the system is like, what I want is to be able to move the camera in that way. For example, if the camera is in a position looking at a mask, and then...
Forum: Scripting Help 30/09/2018, 08:30 PM
Replies: 4
Views: 94
Posted By SapMan
Re: move camera

Yes, I use this for the skin selection camera, but, I do not know how to make it move as well as in the video, it changes from one side to the other.
Forum: Scripting Help 30/09/2018, 05:34 AM
Replies: 4
Views: 94
Posted By SapMan
move camera

How can I make the camera move from one place to another, as well as change its rotation?

Example, like this:

https://youtu. be/rGK5MBlo1rg (See from minute 3:29)
Forum: Scripting Help 25/09/2018, 09:24 PM
Replies: 3
Views: 134
Posted By SapMan
crashdetect

Any idea what this means?

This sends me the console when I start the server.


[debug] Run time error 19: "File or function is not found"
[debug] GetVirtualKeyState
[debug] GetScreenSize...
Forum: Scripting Help 25/09/2018, 09:21 PM
Replies: 13
Views: 532
Posted By SapMan
Re: select player random

No, I think that where it is, it's fine. Because thanks to the timer he chooses the president and the vice president in the middle of the count.

I tried to do it that way (I have not tried it...
Forum: Scripting Help 25/09/2018, 08:42 PM
Replies: 13
Views: 532
Posted By SapMan
Re: select player random

If I understand, but I want to already choose the president and vice president, just continue the countdown and do not choose again. Is a timer that repeats every 1 second, then through that...
Forum: Scripting Help 25/09/2018, 05:31 AM
Replies: 13
Views: 532
Posted By SapMan
Re: select player random

I really need it. I need to make him only choose the president and the vice president only once. In the countdown, he chooses the president and the vice president at every moment.

CODE:

...
Forum: Scripting Help 22/09/2018, 04:41 PM
Replies: 13
Views: 532
Posted By SapMan
Re: select player random

I currently have it like this, is it wrong?


P_INFO[TIME_START] --;
if(P_INFO[TIME_START] >= 1)
{
for(new playerid = 0, j = GetPlayerPoolSize(); playerid <= j; playerid++)
{...
Forum: Scripting Help 17/09/2018, 05:14 PM
Replies: 1
Views: 62
Posted By SapMan
protects the president gamemode

I'm doing a game mode protects the president, but I do not know how to select the president and the vice president randomly, can someone explain me?
Forum: Scripting Help 16/09/2018, 02:23 AM
Replies: 13
Views: 532
Posted By SapMan
select player random

How can I do if I want to randomly select one of the many players in the event? That is, of all those who are in the event, one is chosen.

Example: "Tester is now the killer of the event"
Forum: Scripting Help 13/09/2018, 06:00 PM
Replies: 18
Views: 424
Posted By SapMan
Re: Callback problem

No, foreach is not widely used and I do not like it, besides "GetPlayerPoolSize" only travels through the connected players.
Forum: Scripting Help 13/09/2018, 05:36 PM
Replies: 18
Views: 424
Posted By SapMan
Re: Callback problem

No, but something tells me that using three "loops" is not a good way and it can be done in a better way, but I do not know how.
Forum: Scripting Help 13/09/2018, 02:13 AM
Replies: 18
Views: 424
Posted By SapMan
Re: Callback problem

That is, I must use three times "for (new i = 0, j = GetPlayerPoolSize (); i <= j; i ++)"?


public DerbyCountdown()
{
if(DI[STATUS] != DERBY_WAIT) return KillTimer(DI[COUNTDOWN_TIMER]); ...
Forum: Scripting Help 12/09/2018, 10:20 PM
Replies: 18
Views: 424
Posted By SapMan
Re: Callback problem

Should I use this?


public DerbyCountdown()
{
if(DI[STATUS] != DERBY_WAIT) return KillTimer(DI[COUNTDOWN_TIMER]);

if(DI[PLAYERS] <= 0) return CloseDerby();
if(DI[PLAYERS] ==...
Forum: Scripting Help 12/09/2018, 09:57 PM
Replies: 18
Views: 424
Posted By SapMan
Re: Callback problem

So what should I do exactly, add "for(new playerid = 0, j = GetPlayerPoolSize(); playerid <= j; playerid++) "?
Forum: Scripting Help 12/09/2018, 03:54 AM
Replies: 18
Views: 424
Posted By SapMan
Re: Callback problem

So I must use "public DerbyCountdown(playerid)"?
Forum: Scripting Help 12/09/2018, 01:52 AM
Replies: 18
Views: 424
Posted By SapMan
Re: Callback problem

Or add several "for"?

public DerbyCountdown()
{
if(DI[STATUS] != DERBY_WAIT) return KillTimer(DI[COUNTDOWN_TIMER]);

if(DI[PLAYERS] <= 0) return CloseDerby();
if(DI[PLAYERS] == 1)
{...
Showing results 1 to 25 of 99

 

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


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