Search Results
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 s...
70
Quote:
Originally Posted by Kane
Team IDs are 0-254 (0 is valid). 255 is NO_TEAM.
That works dude, thanks!
70
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 (AltSetPlay...
70
Is there any way I can keep my custom function?
40
Quote:
Originally Posted by KayJ
Why do you use cases in large numbers?
Because someone else here suggested it. Those are just the team IDs.
40
Код:
GetPlayerTeamName(playerid)
{
new szString[24];
new team;
team = GetPlayerTeam(playerid);
switch(team)
{
case 5000: szString = "United States";
case 5001:...
40
Код:
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)")
C:\Users\keega\On...
22
I keep getting tag mismatch warnings when making the gate but it's being written exactly as it should.
Код:
GATE_INDIA1 = CreateAutomaticGate(971, 2720.1001000,-2405.3999000,16.1000000,0.0000000,...
688
Fixed it, it was the speed for some reason.
20
Thanks but I'm hoping I can get some help using mGates or another include to make gates easier
20
Quote:
Originally Posted by AroseKhanNiazi
PHP код:
SetPlayerLevelName(playerid)
{
strdel(PlayerInfo[playerid][pLevelName],0,128);
switch(PlayerInfo[playerid][pL...
111
Код:
stock GetPlayerLevelName(playerid)
{
SetPlayerLevelName(playerid);
return PlayerInfo[playerid][pLevelName];
}
111
Quote:
Originally Posted by Unrea1
Use switch, is more fast.
PHP код:
SetPlayerLevelName(playerid)
{
switch(PlayerInfo[playerid][pLevel])
{
case 1:...
111
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";...
111
https://pastebin.com/rJG7jVTH
include: https://sampforum.blast.hk/showthread.php?tid=348907
Neither of the automatic gates I made (they're in relatively the same place, needed two gates to cover the...
20
Quote:
Originally Posted by Sew_Sumi
Random isn't as random as you'd think it would be...
What do you mean?
Unrelated, but does anyone know why this might cause a tag mismatch warning:...
22
Could I still keep it all on the same line with the commas? I'm hoping to save some space here.
22
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] =
{
{2841.2942,1285.7273,11.390...
22
Quote:
Originally Posted by PrO.GameR
Read more about why you can't use Iter_Remove inside a foreach of same iterator loop
if you are gonna keep looping you need to use Iter_SafeRemove (...
27