SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 16/01/2020, 03:26 PM   #4131
Marko Koprivanac
Big Clucker
 
Marko Koprivanac's Avatar
 
Join Date: Feb 2012
Location: Belgrade,Serbia
Posts: 78
Reputation: 0
Default Re: Little coding questions - For general minor queries 5

Quote:
Originally Posted by Calisthenics View Post
Use single quotes around strings '%s' and '%e'
By the way, you do not need LIMIT clause if `ID` is PRIMARY KEY (which should be).

I tried that before posting, tried every type of format, with ' ' and without in whole query, still no results, i used print to debug and password get hashed, salt changes, but for some reason it does not get updated, i don't know why.
I will open new thread so we don't spam this one so much, if you think you can help take a look.
Marko Koprivanac is offline   Reply With Quote
Old 26/01/2020, 07:38 PM   #4132
Marko Koprivanac
Big Clucker
 
Marko Koprivanac's Avatar
 
Join Date: Feb 2012
Location: Belgrade,Serbia
Posts: 78
Reputation: 0
Default Re: Little coding questions - For general minor queries 5

Hi does someone know what does this warning mean:

Code:
jit.inc(35) : warning 231: state specification on forward declaration is ignored
The line 35 in jit.inc include is:

Code:
forward OnJITCompile();
Marko Koprivanac is offline   Reply With Quote
Old 31/01/2020, 09:53 PM   #4133
Runn3R
Huge Clucker
 
Runn3R's Avatar
 
Join Date: Dec 2013
Location: Croatia, Split
Posts: 420
Reputation: 36
Default Re: Little coding questions - For general minor queries 5

Are you using the lastest version of it?
Runn3R is offline   Reply With Quote
Old 13/03/2020, 07:29 PM   #4134
v4yne1
Little Clucker
 
Join Date: Feb 2019
Posts: 30
Reputation: 4
Default Re: Little coding questions - For general minor queries 5

Can one NPC be used for more players at once?

for instance, I want to make an airplane flight intro before registration process

what if more players started the registration process (npc intro) at the same time, what would happen? how to counter that? ty
v4yne1 is offline   Reply With Quote
Old 11/04/2020, 02:09 PM   #4135
David (Sabljak)
Huge Clucker
 
Join Date: Nov 2011
Posts: 342
Reputation: 18
Default Re: Little coding questions - For general minor queries 5

Code:
Header size:          24996 bytes
Code size:          4612988 bytes
Data size:         25335180 bytes
Stack/heap size:      16384 bytes; estimated max. usage=4110 cells (16440 bytes)
Total requirements:29989548 bytes
Is this optimized?

AMX 9 MB

Freeroam/Deatmatch script - For about 80k lines.
David (Sabljak) is offline   Reply With Quote
Old 14/04/2020, 09:36 AM   #4136
Runn3R
Huge Clucker
 
Runn3R's Avatar
 
Join Date: Dec 2013
Location: Croatia, Split
Posts: 420
Reputation: 36
Default Re: Little coding questions - For general minor queries 5

Quote:
Originally Posted by v4yne1 View Post
Can one NPC be used for more players at once?

for instance, I want to make an airplane flight intro before registration process

what if more players started the registration process (npc intro) at the same time, what would happen? how to counter that? ty
Its an old post but i'd like to answer it.

You can join the same npc but i wouldn't reccomend that. Have you tried using plane objects from samp and instead of NPC-s move them? Or making a new model of the plane and implementing it trough 0.3DL and then using it?
Runn3R is offline   Reply With Quote
Old 14/04/2020, 02:21 PM   #4137
GeoV
Little Clucker
 
Join Date: Feb 2017
Posts: 1
Reputation: 0
Default Re: Little coding questions - For general minor queries 5

Hello there

Just started playing with pawno first ever in my life and I get the "undefined symbol" after I try to compile a script
Quote:
nscript.pwn(26) : error 017: undefined symbol "cmdtext"
Code:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	if (!strcmp(cmdtext, "/randomc", true))
	{
	 ChangeVehicleColor(vehicleid, 0, 1);
	 ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "INFO", "You got your car colored", "OK","YE");
 	}
 	return SendClientMessage(playerid,0xffffffff,"You aren't probably in a car.");
}
Never mind the condition itself, I'm just concerned about that undefined symbol

Thanks a lot
GeoV is offline   Reply With Quote
Old 14/04/2020, 06:08 PM   #4138
Runn3R
Huge Clucker
 
Runn3R's Avatar
 
Join Date: Dec 2013
Location: Croatia, Split
Posts: 420
Reputation: 36
Default Re: Little coding questions - For general minor queries 5

well you are trying to place a command inside the OnPlaeyrEnterVehicle callback hence the error as the string doesn't exits.

Commands go under OnPlayerCommandText
Runn3R is offline   Reply With Quote
Old 18/04/2020, 12:13 PM   #4139
GTLS
High-roller
 
GTLS's Avatar
 
Join Date: Aug 2014
Location: India
Posts: 1,072
Reputation: 119
Default Re: Little coding questions - For general minor queries 5

Quote:
Originally Posted by v4yne1 View Post
Can one NPC be used for more players at once?

for instance, I want to make an airplane flight intro before registration process

what if more players started the registration process (npc intro) at the same time, what would happen? how to counter that? ty
Create NPCs and object in different Virtual world. It solves the issue..
__________________

I don't help for rep. I help cuz I was helped in the past.


Retired from SAMP Scene. Might open SAMP Forums once in a while.

Some treats for ya. Click em
Basic House System
Simple Speedo
Base Login/Register Script

GTLS is offline   Reply With Quote
Old 22/04/2020, 08:52 PM   #4140
Electrifying
Big Clucker
 
Join Date: Sep 2018
Location: Pernambuco
Posts: 172
Reputation: 2
Default Re: Little coding questions - For general minor queries 5

What _: Means? Why and when should I use it?
Electrifying is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to make a soldier aotumaticly be general when the general dies ? AlbanianGuy Scripting Help 35 13/05/2012 03:35 PM
Minor problem Desert Help Archive 4 17/03/2010 06:24 PM
Counting with mysql queries actiwe Help Archive 2 26/02/2010 02:36 PM
SQL queries using GROUP BY Dabombber Help Archive 1 05/10/2009 07:47 PM


All times are GMT. The time now is 08:16 PM.


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