SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 23/04/2020, 01:59 AM   #4141
Nero_3D
High-roller
 
Nero_3D's Avatar
 
Join Date: Jun 2007
Location: Germany
Posts: 2,850
Reputation: 675
Default Re: Little coding questions - For general minor queries 5

Quote:
Originally Posted by Electrifying View Post
What _: Means? Why and when should I use it?
It is somewhat explained here -> https://wiki.sa-mp.com/wiki/Scripting:tags
But to make it short it is usually used to overwrite tags
pawn Code:
new MyTag: myvar;

if(_: myvar == 0) {
    print("yay");
}
Nero_3D is offline   Reply With Quote
Old 27/04/2020, 11:28 PM   #4142
Electrifying
Big Clucker
 
Join Date: Sep 2018
Location: Pernambuco
Posts: 173
Reputation: 2
Default Re: Little coding questions - For general minor queries 5

Does anyone here can send me the link of ps-format?
Is it still useful to this day?
Electrifying is offline   Reply With Quote
Old 27/04/2020, 11:53 PM   #4143
Nero_3D
High-roller
 
Nero_3D's Avatar
 
Join Date: Jun 2007
Location: Germany
Posts: 2,850
Reputation: 675
Default Re: Little coding questions - For general minor queries 5

Quote:
Originally Posted by Electrifying View Post
Does anyone here can send me the link of ps-format?
Is it still useful to this day?
Took me literally one search to find it, on the second last page of the main thread attached to this reply
Quote:
Originally Posted by RogueDrifter View Post
There you go guys enjoy it ^^
If it is useful, depends, packed strings are only useful if you plan to save a lot of long string globally and you want to save a bit of memory otherwise not
Nero_3D is offline   Reply With Quote
Old 23/05/2020, 04:22 PM   #4144
Calinut200
Big Clucker
 
Join Date: Jun 2016
Posts: 74
Reputation: 0
Default Re: Little coding questions - For general minor queries 5

how to rezolve?
PHP Code:
if(PlayerText:linia11 == strcmp("PLD_SLOT:r_69","LD_SLOT:r_69"))
 
warning 213tag mismatchexpected tag "PlayerText"but found none ("_"
Calinut200 is offline   Reply With Quote
Old 24/06/2020, 04:46 AM   #4145
SkyFlare
Huge Clucker
 
SkyFlare's Avatar
 
Join Date: Apr 2015
Location: NZ
Posts: 214
Reputation: 43
Default Re: Little coding questions - For general minor queries 5

How to make unbreakable atm machines/objects?, this example isnt working below
Code:
DynamicAtms[atmid][ObjectID] = CreateDynamicObject(DynamicAtms[atmid][ModelID], DynamicAtms[atmid][PosX], DynamicAtms[atmid][PosY], DynamicAtms[atmid][PosZ], 0.0, 0.0, 0.0, 0, 0, -1, 100.0);
	SetDynamicObjectMaterialText(DynamicAtms[atmid][ObjectID],0,"None",50," Arial",24,0,0,0,1);
would be nice to know how this works, thanks in advance.
__________________
Purchasable Scripting Services Available, Inbox me with your Requests.
My Project Progress Tracker
My Work
Link
Information
S-Store System V2 LinkIngame Store in Dialogs
SkyFlare 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 01:22 AM.


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