SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 178
Search took 0.00 seconds.
Search: Posts Made By: Mic_H
Forum: Scripting Help 21/06/2017, 10:40 PM
Replies: 6
Views: 551
Posted By Mic_H
Re: Script Help

Replace
if(strcmp(cmd, "/ta523", true) ==0 || strcmp(cmd, "/tazer333", true) ==0)
with
if(!strcmp(cmd, "/ta523", true) ==0 || !strcmp(cmd, "/tazer333", true) ==0)

Click here...
Forum: Scripting Help 21/06/2017, 10:31 PM
Replies: 8
Views: 516
Posted By Mic_H
Re: I need a help with "server crash"

If you follow this, your Crash Report will show a-bit details than just "??"s.. It will show line number, function name, etc..
Compile the script and run the server, if it crashes, post the...
Forum: Tools and Files 11/06/2017, 11:56 AM
Replies: 1,477
Views: 1,307,582
Posted By Mic_H
Re: Map editor: (ALL SA-MP VERSIONS) with removebuilding support.

Change Color Depth from 16Bit to 32Bit.
Posting this because, there was no place saying this would fix it :P. Been struggling with this warning and after 2 months of searching found this in a...
Forum: Scripting Help 21/03/2017, 05:37 AM
Replies: 12
Views: 820
Posted By Mic_H
Re: Count Down Timer Help!

new CountDownTime;
new Timer:CountDownT;
new Text:TextDraw1;
stock CreateTimerText()
{
Textdraw1 = TextDrawCreate(537.000000, 327.000000, "05:10");
TextDrawBackgroundColor(Textdraw1,...
Forum: Scripting Help 20/03/2017, 07:12 AM
Replies: 2
Views: 768
Posted By Mic_H
Re: GetPlayerName

stock PName(playerid)
{
new name[24];
GetPlayerName(playerid, name, 24);
return name;
}

CMD:giveweaponset(playerid, params[])
{
new gwsid;
Forum: Scripting Help 20/03/2017, 06:11 AM
Replies: 5
Views: 655
Posted By Mic_H
Re: The way to make this speedo?

1. Make 20 PlayerTextDrawBoxes in color black. Similar to the one made like that, You shouldn't make GlobalTextDraws because its being updated per-player and 20 * MAX_PLAYERS will be too much and you...
Forum: Scripting Help 18/03/2017, 09:08 AM
Replies: 19
Views: 585
Posted By Mic_H
Re: CMD kil

CMD:kill(playerid, params[])
{
if(IsPlayerAdmin(playerid) < 1) return SendClientMessage (playerid, 0x33AA33AA, "[BA:RP]Niste ovlasceni da koristite ovu komandu!");
new targetid;
if...
Forum: Scripting Help 18/03/2017, 09:01 AM
Replies: 2
Views: 319
Posted By Mic_H
Re: cmd kill

new hp;
if(sscanf(params, "ui", targetid, hp)) return SendClientMessage(playerid, 0x33AA33AA, "[BA:RP] Ubijen si od strane admina!");
else
SetPlayerHealth(targetid, float(hp));

Mistake:...
Forum: Scripting Help 18/03/2017, 06:55 AM
Replies: 9
Views: 461
Posted By Mic_H
Re: Help with command

#define MAX_ADMINLVL 8

new AdminRanks[MAX_ADMINLVL][13] = {
"Player",
"Trial Admin",
"Basic Admin",
"Senior Admin",
"Anon",
"Head Admin",
"Anon",
Forum: Scripting Help 22/02/2017, 02:10 PM
Replies: 5
Views: 631
Posted By Mic_H
Re: Reset Variables

Use Crashdetect and check if the script is crashing at some point.. It could happen due to that..

This could happen when there is a copy-paste mistake/fail.
Instead of Resetting variable for...
Forum: Scripting Help 22/02/2017, 02:02 PM
Replies: 7
Views: 526
Posted By Mic_H
Re: Error 032 -

fRank is not part of pInfo(Enum)..

The reason for the error is:>
PlayerInfo[pID][fRank] = 7;

Either make a pRank inside pInfo and change accordingly.. Or edit the mistake..
Forum: Scripting Help 20/02/2017, 01:28 PM
Replies: 4
Views: 507
Posted By Mic_H
Re: Mysql

It is supposed to work.. Maybe the first one registered has the best score/money?
Forum: Scripting Help 13/02/2017, 03:10 PM
Replies: 3
Views: 516
Posted By Mic_H
Re: Run time error 4: "Array index out of bounds"

Yes you need to check for INVALID_PLAYER_ID
CMD:id(playerid, params[])
{
new id, string[144];
if(sscanf(params, "u", id))
return SendClientMessage(playerid, COLOR_RED,"Use:...
Forum: Scripting Help 13/02/2017, 03:00 PM
Replies: 7
Views: 2,510
Posted By Mic_H
Re: Run time error 4: "Array index out of bounds"

What the others meant was, on the Line number:> 13966 inside gtrg.pwn, you are trying to access an Array Slot (65535) which exceed the mentioned array size..
If a player dies due to his...
Forum: Scripting Help 11/02/2017, 06:57 PM
Replies: 1
Views: 570
Posted By Mic_H
Re: Server Unknown Command

If you did Player[MAX_PLAYERS][enum];
The loop is trying to access the 200th value which doesnt exist..
So it becomes 'Array out of bound'..
Change it to
for(new i=0; i < MAX_PLAYERS; i++) {
Forum: Scripting Help 11/02/2017, 06:54 PM
Replies: 3
Views: 696
Posted By Mic_H
Re: Trolls problem

Use OnPlayerUpdate... Check and save current vehicle / seat info.. Hook your PutPlayerInCar and update it..
check onPlayerentercar and exitcar.. If a player changes car without "onplayerentercar"...
Forum: Scripting Help 10/02/2017, 02:47 PM
Replies: 15
Views: 1,085
Posted By Mic_H
Re: Bugged message.

Try this.. You gotta try to fix the error. That happened because the line was supposed to be in For-Loop but I accidently moved it under it.
Forum: Scripting Help 10/02/2017, 02:40 PM
Replies: 2
Views: 334
Posted By Mic_H
Re: /enter command bug

Check if it works when you swap the EntranceXYZ and ExitXYZ and ye
add break;
Reasons for the command to show anything is because he is not near any lab. You might've messed up the coordinates or...
Forum: Scripting Help 10/02/2017, 02:37 PM
Replies: 9
Views: 650
Posted By Mic_H
Re: SQLite banned problem

From the looks of it, you are 'trying' to first retrieve 100 bans in descending order by names, then trying to get their ban reason one by one...

format(query,sizeof(query),"SELECT DISTNCT `NAME`,...
Forum: Scripting Help 10/02/2017, 02:26 PM
Replies: 9
Views: 650
Posted By Mic_H
Re: SQLite banned problem

What do you want to do with this script?

Refer: http://forum.sa-mp.com/showthread.php?t=262417
http://forum.sa-mp.com/showthread.php?t=476204
http://forum.sa-mp.com/showthread.php?t=449536...
Forum: Scripting Help 10/02/2017, 02:10 PM
Replies: 8
Views: 773
Posted By Mic_H
Re: /login cmd

public OnPlayerConnect(playerid)
{
SetPlayerColor(playerid, 0xA9A9A9FF);
CallRemoteFunction("OnPlayerCommandText", "is", playerid, "/login");
return 1;
}

public...
Forum: Scripting Help 09/02/2017, 04:45 PM
Replies: 2
Views: 737
Posted By Mic_H
Re: [MySQL]Table Relations and Saving using ORM??

Refer:
http://forum.sa-mp.com/showthread.php?t=461766
http://forum.sa-mp.com/showthread.php?t=493138
I dont use it myself.. So I am in no position to advice.. And I am not sure if thats the right...
Forum: Scripting Help 09/02/2017, 04:31 PM
Replies: 15
Views: 1,085
Posted By Mic_H
Re: Bugged message.

if(PRESSED(KEY_WALK))
{
new infectedcount;
if(team[playerid] == TEAM_ZOMBIE)
{
if(pInfo[playerid][pZombieClass] == ADVANCEDBOOMER)
{...
Forum: Scripting Help 09/02/2017, 04:24 PM
Replies: 2
Views: 413
Posted By Mic_H
Re: Timer help

//Method_1 (USING #include <YSI/y_timers>)
timer GiveSlapGun[10 * 1000](playerid)
{
if(playerid != INVALID_PLAYER_ID && IsPlayerConnected(playerid))
GivePlayerWeapon(playerid, SLAP_GUN,...
Forum: Scripting Help 09/02/2017, 04:08 PM
Replies: 3
Views: 399
Posted By Mic_H
Re: Easy help.

When the player gets added:> Call:>

cmd_creararma(ID_OF_PLAYER_WHO_GOT_ADDED, " ");

This will call the command for him..

PS: ^ Totally based on what I understood from the question.
Showing results 1 to 25 of 178

 

All times are GMT. The time now is 01:04 PM.


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