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: stormchaser206
Forum: Scripting Help 16/04/2019, 05:39 PM
Replies: 5
Views: 260
Posted By stormchaser206
Re: Team IDs keep getting changed from defines

So there's also another issue, the level names. When I type stats it starts to show the name, but then after the first letter it shows team name after the first two letters, ie if you're level 4, it...
Forum: Scripting Help 16/04/2019, 05:15 PM
Replies: 5
Views: 260
Posted By stormchaser206
Forum: Scripting Help 16/04/2019, 03:41 AM
Replies: 5
Views: 260
Posted By stormchaser206
Team IDs keep getting changed from defines

Pastebin: https://pastebin.com/ZuYaC49a

So I have the team numbers set to defines, starting with #define TEAM_USA 5000. Except for some reason, when I use my custom setplayerteam function...
Forum: Scripting Help 11/03/2018, 03:50 AM
Replies: 6
Views: 409
Posted By stormchaser206
Re: GetPlayerTeamName custom function doesn't work

Is there any way I can keep my custom function?
Forum: Scripting Help 10/03/2018, 05:43 PM
Replies: 6
Views: 409
Posted By stormchaser206
Re: GetPlayerTeamName custom function doesn't work

Because someone else here suggested it. Those are just the team IDs.
Forum: Scripting Help 09/03/2018, 11:23 PM
Replies: 6
Views: 409
Posted By stormchaser206
GetPlayerTeamName custom function doesn't work

GetPlayerTeamName(playerid)
{
new szString[24];
new team;
team = GetPlayerTeam(playerid);

switch(team)
{
case 5000: szString = "United States";
case...
Forum: Scripting Help 07/03/2018, 06:22 PM
Replies: 2
Views: 373
Posted By stormchaser206
26 errors in my script I don't understand

C:\Users\keega\OneDrive\Desktop\SAMP server\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\y_utils.inc(430) : warning 201: redefinition of constant/macro (symbol "isnull(%1)")...
Forum: Includes 06/03/2018, 03:05 AM
Replies: 37
Views: 18,390
Posted By stormchaser206
Re: mGates (Easily create automatic gates with one function!)

I keep getting tag mismatch warnings when making the gate but it's being written exactly as it should.

GATE_INDIA1 = CreateAutomaticGate(971,...
Forum: Scripting Help 05/03/2018, 05:17 PM
Replies: 3
Views: 322
Posted By stormchaser206
Re: mGates include not working

Fixed it, it was the speed for some reason.
Forum: Scripting Help 05/03/2018, 04:41 PM
Replies: 3
Views: 322
Posted By stormchaser206
Re: mGates include not working

Thanks but I'm hoping I can get some help using mGates or another include to make gates easier
Forum: Scripting Help 05/03/2018, 04:31 PM
Replies: 8
Views: 418
Posted By stormchaser206
Re: error 047: array sizes do not match, or destination array is too small

Thanks, that worked. Now I'm getting a bunch of errors with this:
stock GetPlayerTeamName(playerid);
{
new team;
team = GetPlayerTeam(playerid);
if(team == TEAM_USA) return "United States";...
Forum: Scripting Help 05/03/2018, 05:03 AM
Replies: 8
Views: 418
Posted By stormchaser206
Re: error 047: array sizes do not match, or destination array is too small

stock GetPlayerLevelName(playerid)
{
SetPlayerLevelName(playerid);
return PlayerInfo[playerid][pLevelName];
}
Forum: Scripting Help 05/03/2018, 04:49 AM
Replies: 8
Views: 418
Posted By stormchaser206
Re: error 047: array sizes do not match, or destination array is too small

I've already tried increasing the size of pLevelName. Oddly enough this issue only appeared after I made this command:
CMD:stats(playerid, params[])
{
new name[24], string1[128], string2[128],...
Forum: Scripting Help 05/03/2018, 04:34 AM
Replies: 8
Views: 418
Posted By stormchaser206
error 047: array sizes do not match, or destination array is too small

Getting this error in a part where there aren't even any arrays.



stock SetPlayerLevelName(playerid)
{
if(PlayerInfo[playerid][pLevel] == 1) PlayerInfo[playerid][pLevelName] = "Private I";...
Forum: Scripting Help 05/03/2018, 03:28 AM
Replies: 3
Views: 322
Posted By stormchaser206
mGates include not working

https://pastebin.com/rJG7jVTH

include: http://forum.sa-mp.com/showthread.php?t=348907

Neither of the automatic gates I made (they're in relatively the same place, needed two gates to cover the...
Forum: Scripting Help 05/03/2018, 12:57 AM
Replies: 5
Views: 421
Posted By stormchaser206
Re: Random team spawns not working

What do you mean?

Unrelated, but does anyone know why this might cause a tag mismatch warning:
GATE_ADMIN_HOUSE1 = CreateAutomaticGate(980, 1491.3000000,-699.9000200,96.5000000,...
Forum: Scripting Help 04/03/2018, 11:58 PM
Replies: 5
Views: 421
Posted By stormchaser206
Re: Random team spawns not working

Could I still keep it all on the same line with the commas? I'm hoping to save some space here.
Forum: Scripting Help 04/03/2018, 10:57 PM
Replies: 5
Views: 421
Posted By stormchaser206
Random team spawns not working

https://pastebin.com/cBkAnXuQ

The team spawn thing is at the very bottom.

For some reason it only randomly spawns at this one:
new Float:IndiaSpawns[3][4] =
{ ...
Forum: Scripting Help 24/09/2016, 03:56 PM
Replies: 5
Views: 746
Posted By stormchaser206
Re: Delete house command creates a loop that crashes server

I did seem to have that issue when I tried to remove a house. So, how should I fix it?
Forum: Scripting Help 24/09/2016, 06:07 AM
Replies: 5
Views: 746
Posted By stormchaser206
Forum: Scripting Help 24/09/2016, 05:31 AM
Replies: 5
Views: 746
Posted By stormchaser206
Delete house command creates a loop that crashes server

I have a delete house command, that whenever I use it near a house, creates a loop of messages that crashes the server.
CMD:delhouse(playerid, params[])
{
new string[128];
new HouseID;
...
Forum: Scripting Help 24/09/2016, 05:23 AM
Replies: 2
Views: 306
Posted By stormchaser206
Forum: Scripting Help 24/09/2016, 02:54 AM
Replies: 2
Views: 306
Posted By stormchaser206
Make admin command doesn't work

CMD:makeadmin(playerid, params[])
{
new ID;
new lvl;
new string[128];
new lvlname[50];

if(lvl == 0) return lvlname = "Not Admin";
if(lvl == 1) return lvlname = "Moderator";
if(lvl ==...
Forum: Tutorials 17/03/2016, 02:33 AM
Replies: 44
Views: 19,578
Posted By stormchaser206
Forum: Tutorials 16/03/2016, 09:51 PM
Replies: 44
Views: 19,578
Posted By stormchaser206
Re: [New] How to make capture zone system (no more code repeating)

Thanks!

Also, the zone area does not show up for me on the map. Only the flag (when I get near) and the checkpoint. Also, the checkpoint is useless, it doesn't do anything, except send a message...
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 09:47 AM.


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