SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 214
Search took 0.01 seconds.
Search: Posts Made By: NoteND
Forum: Scripting Help 16/01/2020, 05:45 PM
Replies: 4
Views: 141
Posted By NoteND
Re: Zero damage

So if you want infinity health you have to define this on top of ur script

#define INFINITY (Float:0x7F800000)

and then use

SetPlayerHealth(playerid, INFINITY);

that makes player...
Forum: Scripting Help 05/01/2020, 05:54 PM
Replies: 8
Views: 148
Posted By NoteND
Re: able to login using any password.

I dont see you saving password anywhere in that function
Forum: Scripting Help 05/01/2020, 05:15 PM
Replies: 8
Views: 148
Posted By NoteND
Re: able to login using any password.

Show me how you save password into database and how you load it in to variable "PlayerInfo[playerid][Password]". And whats your "PlayerInfo[playerid][Password]" variable size. Has to be 129 just like...
Forum: Scripting Help 04/01/2020, 06:16 PM
Replies: 3
Views: 73
Posted By NoteND
Re: sscanf issue

Because I want default value to be playerid incase player does not specify pID as I've tried making it optional param.
Forum: Scripting Help 04/01/2020, 06:08 PM
Replies: 3
Views: 73
Posted By NoteND
sscanf issue

Hey!

With this script

if(sscanf(params, "U(playerid)", pID)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /score (Username/ID)");

I'm getting these 2 errors/warnings in console
...
Forum: Scripting Help 03/01/2020, 03:46 PM
Replies: 4
Views: 110
Posted By NoteND
Re: Whats the difference?

Thanks everyone !
Forum: Scripting Help 03/01/2020, 12:47 PM
Replies: 4
Views: 110
Posted By NoteND
Whats the difference?

Hey!

Just wondering whats the difference between

public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, -1, "Test1");
SendClientMessage(playerid, -1, "Test2");
return 1;
}
Forum: Scripting Help 01/01/2020, 04:12 PM
Replies: 4
Views: 101
Posted By NoteND
Re: Looking for command

Do you have MySQL Database or what?
Forum: Scripting Help 31/12/2019, 09:44 AM
Replies: 1
Views: 71
Posted By NoteND
Question about "for" loop

Hey!

So I'm just wondering if in similar case as this one (this is just example) is needed to add that "else continue" at the end of loop, or is it just gonna continue either way by itself until...
Forum: Scripting Help 25/12/2019, 07:39 AM
Replies: 3
Views: 178
Posted By NoteND
Re: Ackslimit

Okay, but I asked how to avoid it in general..

bump.
Forum: Scripting Help 24/12/2019, 06:30 PM
Replies: 3
Views: 178
Posted By NoteND
Ackslimit

Simple question.. how to avoid ackslimit? I do not see anywhere in my script that I'd be using too big of a loop etc. that would trigger the warning im getting.. ackslimit (3024) and (4020) for...
Forum: Scripting Help 10/12/2019, 06:16 PM
Replies: 6
Views: 177
Posted By NoteND
Re: invalid function or declaration

Oh.. Alrighty :) Thanks, I'll just do it seperately then, like I have it now, I thought there's an easier way for it, its just that
Forum: Scripting Help 10/12/2019, 05:46 PM
Replies: 6
Views: 177
Posted By NoteND
Re: invalid function or declaration

Indeed.. because, I wanna use "Worlds[STUNT]" for example.. and not make a new array with just those worlds and name it WorldsStunt[] = {1,2... u know

and I know arrays start at 0.. but I need to...
Forum: Scripting Help 10/12/2019, 05:34 PM
Replies: 6
Views: 177
Posted By NoteND
Re: invalid function or declaration

Okay so.. I got this

#define STUNT 1
#define FREEROAM 2

Thats why I want numbers for each gamemode.. these 2 are gamemodes (stunt and freeroam).. so I want to use

Numbers[STUNT] in a code...
Forum: Scripting Help 10/12/2019, 03:54 PM
Replies: 6
Views: 177
Posted By NoteND
invalid function or declaration

Hey!

How to use this like I want to without getting error

new Numbers[6][][];

Numbers[0][][] =
{
1, 2, 3, 4, 5, 6
};
Forum: Scripting Help 09/12/2019, 07:10 PM
Replies: 4
Views: 161
Posted By NoteND
Re: 3 Dimensional arrays with enum

Maybe I didnt give best example.. because what you wrote will never work in my actual case
Forum: Scripting Help 09/12/2019, 06:11 PM
Replies: 4
Views: 161
Posted By NoteND
3 Dimensional arrays with enum

Hey!

Let me show you a code and then explain the problem or what I'm trying to do..

#define LOCATION1 1
#define LOCATION2 2
#define LOCATION3 3
#define LOCATION4 4

#define...
Forum: Scripting Help 07/12/2019, 02:25 PM
Replies: 4
Views: 128
Posted By NoteND
Re: Question about function

Thanks you very much for your help :)
Forum: Scripting Help 07/12/2019, 01:48 PM
Replies: 4
Views: 128
Posted By NoteND
Re: Question about function

Okay ye, which means it wont crash a server, but it will wait for one function to execute and then proceed with next one ?
Forum: Scripting Help 07/12/2019, 11:29 AM
Replies: 4
Views: 128
Posted By NoteND
Question about function

Hey!

I got a question about basic function.. Lets use this code for example

Start(number)
{
switch(number)
{
case 1:
{
Forum: Scripting Help 01/12/2019, 02:04 PM
Replies: 7
Views: 198
Posted By NoteND
Forum: Scripting Help 01/12/2019, 12:27 PM
Replies: 7
Views: 198
Posted By NoteND
Re: Shadowing Variable at preceeding level

I know what it means, I'm not beginner in scripting by any means.. Im just confused cuz I thought brackets close the variables within bracket (as written)
Forum: Scripting Help 30/11/2019, 06:35 PM
Replies: 7
Views: 198
Posted By NoteND
Shadowing Variable at preceeding level

Hey!

Why does this

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case 1:
{
Forum: Scripting Help 30/11/2019, 12:36 PM
Replies: 11
Views: 354
Posted By NoteND
Re: Random Objects and random spawn

Change this line

new rand = Objects[random(600)];

to

new rand = random(sizeof(Objects));

and for labels.. you need to create new array for example
Forum: Scripting Help 29/11/2019, 05:35 PM
Replies: 11
Views: 354
Posted By NoteND
Re: Random Objects and random spawn

stock randomEx(min, max)
{
new rand = random(max-min)+min;
return rand;
}

new Objects[600] = {1, 2, 3, 4, 5, 6...}

SpawnObjects()
{
Showing results 1 to 25 of 214

 

All times are GMT. The time now is 06:48 PM.


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