SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 478
Search took 0.01 seconds.
Search: Posts Made By: Macronix
Forum: Scripting Help 06/08/2019, 04:07 PM
Replies: 4
Views: 142
Posted By Macronix
Re: "Unknown command" even if it works.

Cleaned up your code a little, try this:

CMD:closefood(playerid, params[])
{
if(SelectingFood[playerid] == 1)
{
ShowFoodMenu(playerid, 0);
PlayerPlaySound(playerid,...
Forum: Scripting Help 28/07/2019, 10:16 PM
Replies: 10
Views: 341
Posted By Macronix
Re: Random array

SCMEX(playerid, COLOR_INFO, "Delivering %s (Value: %d - Weight: %.2f kilograms) to %s - Special package: %d",


You used %s for value and not %d and the float attribute was wrong.
Forum: Scripting Help 23/07/2019, 03:15 PM
Replies: 13
Views: 369
Posted By Macronix
Re: Dialog

EDIT: Nevermind.. How are your embedded colors defined? Must be in this format:

#define COLOR_WHITE "{FFFFFF}"
Forum: Scripting Help 22/07/2019, 09:58 PM
Replies: 4
Views: 161
Posted By Macronix
Re: Small Red Arrow

Well, you could use object ID 19902 (that singleplayer interior arrow which goes up and down) and attach that to a player.
Forum: Scripting Help 12/07/2019, 03:17 PM
Replies: 7
Views: 154
Posted By Macronix
Re: error 006: must be assigned to an array

Gender needs to be a string and not an integer in this case. Or just use "strval(inputtext);"
Forum: Scripting Help 07/07/2019, 01:00 AM
Replies: 3
Views: 208
Posted By Macronix
Re: mysql format

I don't see any mistakes there. Plugin/Include up to date?
Have you checked your functions "ReturnDate()" and "GetPlayerIp" ? Or maybe post them?
Forum: Scripting Help 02/07/2019, 05:06 PM
Replies: 26
Views: 709
Posted By Macronix
Re: Problem missions

Hehe, glad to hear. Thanks, haha :D
Forum: Scripting Help 02/07/2019, 04:00 PM
Replies: 26
Views: 709
Posted By Macronix
Re: Problem missions

Add "native IsValidVehicle(vehicleid);" to your a_samp.inc :)
Forum: Scripting Help 02/07/2019, 03:42 PM
Replies: 26
Views: 709
Posted By Macronix
Re: Problem missions

Yep, check my post, I edited it. :D
Forum: Scripting Help 02/07/2019, 02:27 PM
Replies: 26
Views: 709
Posted By Macronix
Re: Problem missions

What do you mean by that? You just add the missions to the missions array with the specific coordinates for LS, SF and LV missions. :D
Or do you want to create trailers specifically for those cities...
Forum: Scripting Help 01/07/2019, 12:45 PM
Replies: 26
Views: 709
Posted By Macronix
Re: Problem missions

Updated the code a little:


enum
{
STATE_IDLE,
STATE_ACCEPT_DIALOG,
STATE_MISSION_STARTED
}
new PlayerMissionState[MAX_PLAYERS] = {STATE_IDLE, ...};
Forum: Scripting Help 30/06/2019, 06:44 PM
Replies: 26
Views: 709
Posted By Macronix
Re: Problem missions

Yeah, you could do that with OnTrailerUpdate and a boolean variable if a player has already started a mission (you need to prevent the callback from being called if the player already started a...
Forum: Scripting Help 30/06/2019, 03:47 PM
Replies: 26
Views: 709
Posted By Macronix
Re: Problem missions

Trailer[arrayid][MissionID] = random(sizeof(Missions));
Update3DTextLabelText(Trailer[arrayid][TrailerLabel], -1, Missions[missionid][TrailerMissionName]);

should be

...
Forum: Scripting Help 29/06/2019, 05:13 PM
Replies: 8
Views: 274
Posted By Macronix
Re: Problem VIP mysql

What's the problem with more code? More code doesn't mean it's bad. ;)
Forum: Scripting Help 29/06/2019, 02:42 PM
Replies: 26
Views: 709
Posted By Macronix
Re: Problem missions

You can't do it like that. You should consider making an extra array for the missions and one array for the trailers to store the mission ID in and also an array to store the array ID from the...
Forum: Scripting Help 27/06/2019, 11:56 PM
Replies: 8
Views: 274
Posted By Macronix
Re: Problem VIP mysql

https://forum.sa-mp.com/showthread.php?t=347605
Forum: Scripting Help 25/06/2019, 04:47 PM
Replies: 5
Views: 233
Posted By Macronix
Re: Problem with SendClientMessageToAll

Something like

forward OnPlayerCBug(playerid);
public OnPlayerCBug(playerid)
{
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
new...
Forum: Scripting Help 25/06/2019, 04:36 PM
Replies: 5
Views: 233
Posted By Macronix
Re: Problem with SendClientMessageToAll

Add a delayed kick timer for like 1 second or so. The message will be shown first and then the player will be kicked from the server.
Forum: Scripting Help 10/06/2019, 07:08 PM
Replies: 1
Views: 81
Posted By Macronix
Re: I need this interior id

http://weedarr.wikidot.com/interior

Interior ID: 11
Coordinates: 501.980987,-69.150199,998.757812
Forum: Scripting Help 30/05/2019, 01:32 PM
Replies: 12
Views: 241
Posted By Macronix
Re: warning 213: tag mismatch

Well, then it makes sense why it's telling you it's a tag mismatch...

Either set it to boolean (new bool:Player_Language[MAX_PLAYERS]; ) and do it like this:

format(string, sizeof string,...
Forum: Scripting Help 29/05/2019, 11:40 PM
Replies: 12
Views: 241
Posted By Macronix
Re: warning 213: tag mismatch

Is Player_Language[playerid] defined as a boolean?
Forum: Scripting Help 26/05/2019, 02:12 PM
Replies: 4
Views: 104
Posted By Macronix
Re: Some error in my miniGame

What do you want with that first value (299) in gAdmSpawn ? It's telling you tag mismatch because you have declared your gAdmSpawn to be float only but the first value is an integer.


new...
Forum: Scripting Help 26/05/2019, 02:07 PM
Replies: 5
Views: 154
Posted By Macronix
Re: Repair System database

No, you don't have to. You just copy some of the content of your AddARepairPickups function to the loading function:


public OnLoadRepairPickups()
{
new count;
cache_get_row_count(count);...
Forum: Scripting Help 25/05/2019, 08:53 PM
Replies: 5
Views: 154
Posted By Macronix
Re: Repair System database

Everytime this function is called, you insert a new pickup to the database. Even on loading.
Forum: Scripting Help 25/05/2019, 08:48 PM
Replies: 5
Views: 154
Posted By Macronix
Re: Repair System database

Can you post the function AddARepairPickups ?
Showing results 1 to 25 of 478

 

All times are GMT. The time now is 01:44 AM.


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