SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.01 seconds.
Search: Posts Made By: introzen
Forum: Scripting Help 29/03/2019, 12:57 PM
Replies: 3
Views: 110
Posted By introzen
Re: Timer after the player dies

This seems to be unused.
new bool:IsDead;

If you were to use it, surely you'd have to do
new bool:IsDead[MAX_PLAYERS];

What is your intention with the timer? If you want the player to spawn...
Forum: Everything and Nothing 29/03/2019, 12:07 PM
Replies: 298
Views: 28,795
Posted By introzen
Forum: Scripting Help 29/03/2019, 11:50 AM
Replies: 3
Views: 175
Posted By introzen
Re: Finding unused indexid

new freeObjectId;
for(new i=0; i<MAX_OBJECTS; i++) {
if(!IsValidObject(SpawnedObject[i])) {
freeObjectId = i;
break;
}
}

SpawnedObject[i] = CreateObject();
Forum: Scripting Help 29/03/2019, 10:58 AM
Replies: 9
Views: 313
Posted By introzen
Re: cache_get_field_content_int - no active cache

Try commenting out HouseLabel[i] and both HousePickup[i]'s and see if it works, then you know there's an error in the syntax. I'd think it would've shown during compile though but couldn't hurt to...
Forum: Scripting Help 29/03/2019, 10:35 AM
Replies: 9
Views: 313
Posted By introzen
Re: cache_get_field_content_int - no active cache

Well, my money will be on the dots in your arguments. You define an argument by inserting a variable or a value. There's no need to define what argument you want to set since that's decided by the...
Forum: Scripting Help 29/03/2019, 10:11 AM
Replies: 5
Views: 349
Posted By introzen
Re: Change experience to all players MYSQL

Just as the error itself tells you, you're trying to save an int value to a pre-defined string.
error 035: argument type mismatch (argument 2)

cache_get_value_int(0, nameOnTable, skillLVL);...
Forum: Scripting Help 29/03/2019, 10:01 AM
Replies: 9
Views: 313
Posted By introzen
Re: cache_get_field_content_int - no active cache

I'm unfamiliar with the mysql plugin for SAMP so I can't help you on that.

I'm unsure what the "." does in this? .worldid = HouseInfo[i][HouseExteriorVW], .interiorid =...
Forum: Scripting Help 29/03/2019, 09:44 AM
Replies: 9
Views: 277
Posted By introzen
Re: Reading file backwards

Found this snippet by using the search function. Don't know if it's what you're looking for though.

Function:Reverse(string[])
{
// Setting vars
new string1[256];
...
Forum: Tutorials 28/03/2019, 09:42 AM
Replies: 22
Views: 8,910
Posted By introzen
Re: Turf War System ! [Zones]

#undefine MAX_ZONES
#define MAX_ZONES 100 (or whatever you want)

Need to see some code for the rest @line 350.
Forum: Scripting Help 28/03/2019, 09:30 AM
Replies: 1
Views: 123
Posted By introzen
Re: speedometer bug

If you can't figure out why your speedometer is getting messed up with the implementation of NPC's, you probably shouldn't implement NPC's until you have that knowledge. You would need a general...
Forum: Scripting Help 28/03/2019, 09:25 AM
Replies: 2
Views: 159
Posted By introzen
Re: Vehicle System

You could set it up in different ways, all according to your preference, but the basics of storing information in a database remains the same.

- You create a database and table to hold all vehicle...
Forum: Scripting Help 27/03/2019, 03:30 PM
Replies: 1
Views: 106
Posted By introzen
Re: Kill register

Yes. You're already checking for, and defining issuerid, so just use that together with GetPlayerScore();
SetPlayerScore();
Forum: Scripting Help 27/03/2019, 01:06 PM
Replies: 13
Views: 565
Posted By introzen
Re: Y_Ini question

Perhaps I'm mistaken since I'm not used to y_ini, but does LoadServerData load the settings.ini data into the enum? If so, show us the SaveServerData counterpart.
Forum: Scripting Help 27/03/2019, 12:50 PM
Replies: 13
Views: 565
Posted By introzen
Re: Y_Ini question

Please show us the script where you're saving the ServerInfo to server.ini.
Forum: Scripting Help 27/03/2019, 10:54 AM
Replies: 14
Views: 480
Posted By introzen
Re: if ( playerData[playerid][playerLevel] < Level_Here )

No, he's referring to

if ( playerData[playerid][playerLevel] < 6 )
return SendClientMessage(playerid, -1, "{F81414}[ERROR]{FFFFFF} You don't have an appropriate administration...
Forum: Scripting Help 04/05/2016, 08:45 AM
Replies: 3
Views: 282
Posted By introzen
Re: So hold on!!

If you still want your indentation you can use:

new tmp1,
tmp2,
tmp3,
tmp4;
Forum: Scripting Help 03/05/2016, 07:39 AM
Replies: 5
Views: 491
Posted By introzen
Re: Mysql update query

Why would you?
Forum: Scripting Help 02/05/2016, 09:06 AM
Replies: 9
Views: 560
Posted By introzen
Re: Hi, Help with the anti-cheat.

There's rarely any need for using OnPlayerUpdate now that there's OnPlayerTakeDamage. Money AC kan be checked on timer with several seconds interval.
Forum: Scripting Help 02/05/2016, 09:02 AM
Replies: 8
Views: 649
Posted By introzen
Re: What is more optimized?

I prefer option 3 with indentation.
Forum: Scripting Help 29/04/2016, 09:28 AM
Replies: 3
Views: 386
Posted By introzen
Re: Is there an "or" statement?

Check out the operators here: https://wiki.sa-mp.com/wiki/Control_Structures#Operators
Forum: Scripting Help 28/04/2016, 03:46 PM
Replies: 6
Views: 680
Posted By introzen
Re: RemoveBuilding for a VirtualWord

Redefine SetPlayerVirtualWorld and create a callback for it, OnPlayerVirtualWorldChange. On the callback, remove the building for the player if it's a certain vw and then recreate building if not.
Forum: Scripting Help 27/04/2016, 04:46 PM
Replies: 20
Views: 1,263
Posted By introzen
Re: Making an Admin's list

You're not sending any message if there's an admin online. Your just grabbing the variable and defining admtext. You need to format a string and send it oncertainly you've confirmed there's an...
Forum: Scripting Help 27/04/2016, 12:46 PM
Replies: 14
Views: 1,241
Posted By introzen
Re: How to type player's hash password in a string? (+REP)

It would be stupid to allow admins to watch players private passwords. I'm not going to help you with that. Sorry.

On the integer part however, you would have to use a private encryption key which...
Forum: Scripting Help 27/04/2016, 12:42 PM
Replies: 6
Views: 708
Posted By introzen
Re: [SUGGESTION] Inventory System

I assume you have a vehicle array as well. Give each vehicle a unique key-code. In the inventory array, then define the correct key-code to the vehicle and check if they match on /lock etc.

E.g....
Forum: Scripting Help 27/04/2016, 10:56 AM
Replies: 6
Views: 708
Posted By introzen
Re: [SUGGESTION] Inventory System

Use a global array for the inventories.
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 06:35 AM.


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