SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: NealPeteros
Forum: Scripting Help 13/10/2018, 04:41 AM
Replies: 3
Views: 54
Posted By NealPeteros
Re: help me not open

Update your streamer plugin and include. Recompile the script. Run the server
Forum: Scripting Help 13/10/2018, 03:53 AM
Replies: 1
Views: 60
Posted By NealPeteros
sscanf as comparing

Can sscanf (maybe sscanf2) be used to compare strings? Wanted to use this method because strcmp apparently uses a lot more memory
Forum: Scripting Help 09/10/2018, 12:07 PM
Replies: 5
Views: 81
Posted By NealPeteros
Re: Loop in an array

So uh, something like this?


for(new i=0; i<10; i++)
{
if(PlayerInfo[id][Inv][i] == 1)
{
//code
}
}
Forum: Scripting Help 09/10/2018, 11:45 AM
Replies: 5
Views: 81
Posted By NealPeteros
Re: Loop in an array

Right, that was my fault, should've been 0.

How do I check the content of every array if their value is equal to 1?
Forum: Scripting Help 09/10/2018, 10:48 AM
Replies: 5
Views: 81
Posted By NealPeteros
Loop in an array

So uh I was trying to check every content of the array if each of them are equal to one, but I'm kinda having troubles in how to shorten it. Here's how far I've gone

if((PlayerInfo[id][Inv][1] ==...
Forum: Server Support 21/09/2018, 02:38 PM
Replies: 14
Views: 976
Posted By NealPeteros
Re: Good RP Scripts?

You can't. You just can't. You can't. No, you can't.
Forum: Scripting Help 16/09/2018, 02:53 PM
Replies: 3
Views: 141
Posted By NealPeteros
Optional string (sscanf)

So I wanted to create a /mute command wherein the admin who uses the command may or may not input a reason as to why he'd mute the player. Here's where I got so far


CMD:mute(playerid, params[])...
Forum: Scripting Help 15/09/2018, 09:54 AM
Replies: 15
Views: 353
Posted By NealPeteros
Re: Minimizing lines

forgot about those, thanks!
Forum: Scripting Help 15/09/2018, 09:39 AM
Replies: 15
Views: 353
Posted By NealPeteros
Minimizing lines

So I have a crapload of information in one line. How do you minimize it in order to avoid the error 075: input line too long (after substitutions)

if(i != 19 || i != 20 || i != 21 || i != 23 || i...
Forum: Scripting Help 14/09/2018, 12:54 PM
Replies: 6
Views: 135
Posted By NealPeteros
Re: Multidimensional Array

Forgot to thank you =)
Forum: Scripting Help 14/09/2018, 11:17 AM
Replies: 6
Views: 135
Posted By NealPeteros
Re: Multidimensional Array

new string[128];
for(new i = 0; i < sizeof(Msgs); i++)
{
if(strfind(msg, Msgs[i], true) != -1)
{
return 1;
}
}

Dunno how to go further than that
Forum: Scripting Help 14/09/2018, 10:59 AM
Replies: 6
Views: 135
Posted By NealPeteros
Multidimensional Array

So I was planning to create an array for the messages of 4 textdraws


static const Msgs[][2][50] = //[] is for the id, [2] is to declare a multidimensional array, [50] is the maxlength of the...
Forum: Scripting Help 14/09/2018, 05:43 AM
Replies: 3
Views: 89
Posted By NealPeteros
Re: Showing multiple textdraws in one command

oh, i was trying to say that i already fixed the problem. but thanks anyway =D
Forum: Scripting Help 14/09/2018, 05:17 AM
Replies: 3
Views: 89
Posted By NealPeteros
Re: Showing multiple textdraws in one command

okay, so my deepest apologies. decided not to be lazy and place all of those in an array. donesies

sorry :D
Forum: Scripting Help 14/09/2018, 05:06 AM
Replies: 3
Views: 89
Posted By NealPeteros
Showing multiple textdraws in one command

So I have 50 textdraws which I plan to be shown to the player with one command. Thing is that


CMD:show(playerid, params[])
{
PlayerTextDrawShow(playerid, Textdraw0);...
Forum: Scripting Help 09/09/2018, 02:20 PM
Replies: 12
Views: 214
Posted By NealPeteros
Re: Break; function error

Fixed. Found out it had nothing to do with the script I sent, it was from another set of lines. Thanks y'all!
Forum: Scripting Help 09/09/2018, 01:00 PM
Replies: 12
Views: 214
Posted By NealPeteros
Re: Break; function error

It's an array; used it as an array.
Forum: Scripting Help 09/09/2018, 12:53 PM
Replies: 12
Views: 214
Posted By NealPeteros
Re: Break; function error

enum hInfo
{
HealthLevel[10]
};
new HealthInfo[MAX_PLAYERS][hInfo];
Forum: Scripting Help 09/09/2018, 10:07 AM
Replies: 12
Views: 214
Posted By NealPeteros
Re: Break; function error

Still doesn't work somehow...
Forum: Scripting Help 09/09/2018, 09:35 AM
Replies: 12
Views: 214
Posted By NealPeteros
Re: Break; function error

Something like this?

Pastebin (https://pastebin.com/1ALkCsjF)


EDIT: That doesn't work either.
Forum: Scripting Help 09/09/2018, 09:09 AM
Replies: 12
Views: 214
Posted By NealPeteros
Re: Break; function error

Oh shoot, forgot to paste that, sorry.

Pastebin (https://pastebin.com/zXUreHNY)
Forum: Scripting Help 09/09/2018, 08:53 AM
Replies: 12
Views: 214
Posted By NealPeteros
Break; function error

I have this script where the system gives items, and here's how i planned it to work

- The system searches the inventory for a vacant slot. if found, the player receives level 1 version of the...
Forum: Server Support 09/03/2018, 03:15 AM
Replies: 13,784
Views: 1,520,146
Posted By NealPeteros
Re: Looking for scripters/helpers? Post here!

Looking for someone who plans on starting a server but has no knowledge in scripting. I may or may not work for free, depending on the work assigned.

If you have a financial problem (or even if...
Forum: Everything and Nothing 11/02/2018, 11:18 AM
Replies: 20
Views: 958
Posted By NealPeteros
Re: Fantasy Roleplay (What do you guys think?)

Erase the rolling system and the character sheet?
Forum: Scripting Help 11/02/2018, 09:10 AM
Replies: 4
Views: 145
Posted By NealPeteros
Re: Shortcuts on input

Awesome, thanks!
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 11:33 PM.


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