scritping help

LuckyGuyXd

Member
Joined
Sep 3, 2016
Messages
9
Reaction score
0
[font=verdana, geneva, lucida,][size=x-small][font=Verdana, Tahoma, Calibri, Geneva, sans-serif]
Code:
[/font][/SIZE][/color][/url][/font][/size][/color]
D:\Blaze\gamemodes\yerp.pwn(11139) : warning 204: symbol is assigned a value that is never used: "level"
D:\Blaze\gamemodes\yerp.pwn(29329) : warning 225: unreachable code
D:\Blaze\gamemodes\yerp.pwn(43350) : warning 219: local variable "szRank" shadows a variable at a preceding level
D:\Blaze\gamemodes\yerp.pwn(43328) : warning 204: symbol is assigned a value that is never used: "fam"
D:\Blaze\gamemodes\yerp.pwn(57466) : warning 213: tag mismatch
D:\Blaze\gamemodes\yerp.pwn(65137) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Blaze\gamemodes\yerp.pwn(66675) : warning 204: symbol is assigned a value that is never used: "gun"
D:\Blaze\gamemodes\yerp.pwn(69393) : warning 202: number of arguments does not match definition
D:\Blaze\gamemodes\yerp.pwn(69397) : warning 219: local variable "Positions" shadows a variable at a preceding level
D:\Blaze\gamemodes\yerp.pwn(69400) : warning 213: tag mismatch
D:\Blaze\gamemodes\yerp.pwn(69400) : warning 213: tag mismatch
D:\Blaze\gamemodes\yerp.pwn(69400) : warning 213: tag mismatch
D:\Blaze\gamemodes\yerp.pwn(69401) : warning 213: tag mismatch
D:\Blaze\gamemodes\yerp.pwn(69401) : warning 213: tag mismatch
D:\Blaze\gamemodes\yerp.pwn(69401) : warning 213: tag mismatch
D:\Blaze\gamemodes\yerp.pwn(70200) : warning 219: local variable "object" shadows a variable at a preceding level
D:\Blaze\gamemodes\yerp.pwn(70231) : warning 219: local variable "object" shadows a variable at a preceding level
D:\Blaze\gamemodes\yerp.pwn(71197) : warning 204: symbol is assigned a value that is never used: "String"
D:\Blaze\gamemodes\yerp.pwn(78347) : warning 219: local variable "lstring" shadows a variable at a preceding level
D:\Blaze\gamemodes\yerp.pwn(78368) : warning 219: local variable "lstring" shadows a variable at a preceding level
D:\Blaze\gamemodes\yerp.pwn(78392) : warning 213: tag mismatch
D:\Blaze\gamemodes\yerp.pwn(78392) : warning 213: tag mismatch
D:\Blaze\gamemodes\yerp.pwn(78392) : warning 213: tag mismatch
D:\Blaze\gamemodes\yerp.pwn(78402) : warning 213: tag mismatch
D:\Blaze\gamemodes\yerp.pwn(78402) : warning 213: tag mismatch
D:\Blaze\gamemodes\yerp.pwn(78402) : warning 213: tag mismatch
D:\Blaze\gamemodes\yerp.pwn(80821) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Blaze\gamemodes\yerp.pwn(1342) : warning 204: symbol is assigned a value that is never used: "Fired"
D:\Blaze\gamemodes\yerp.pwn(1341) : warning 204: symbol is assigned a value that is never used: "FireworkTotal"
D:\Blaze\gamemodes\yerp.pwn(1341 -- 85715) : warning 203: symbol is never used: "RecentBans"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


30 Warnings.



help me please
 

LuckyGuyXd

Member
Joined
Sep 3, 2016
Messages
9
Reaction score
0
11139
Code:
level = PlayerInfo[i][pAdmin];
29392
[code]
CMD:permaban(playerid, params[])
{
	return SendClientMessage(playerid, COLOR_GREY, "This command has been disabled.");
	if(PlayerInfo[playerid][pAdmin] >= 4)
	{
		new string[128], giveplayerid, reason[64];
		if(sscanf(params, "us[64]", giveplayerid, reason))
		{
			SendClientMessage(playerid, COLOR_WHITE, "USAGE: /permaban [playerid/partofname] [reason]");
			return 1;
		}
        //if(AntiAdv(playerid, params)) return 1;
		if(IsPlayerConnected(giveplayerid))
		{
			if(PlayerInfo[giveplayerid][pAdmin])
			{
				/*if(AdminDuty[playerid] == 1)
				{
					new username[MAX_PLAYER_NAME];
					GetPVarString(playerid, "TempNameName", username, sizeof(username));
					SetPVarInt(playerid, "TempName", 0);
					SetPlayerName(playerid, username);
				}
				format(string, sizeof(string), "AdmCmd: %s has been auto-banned, reason: Trying to /permaban a higher admin.", PlayerInfo[playerid][pAdminName]);
				ABroadCast(COLOR_YELLOW,string,2);
				PlayerInfo[playerid][pBanned] = 3;
				new ip[32];
				GetPlayerIp(playerid,ip,sizeof(ip));
				AddBan(ip);
				Kick(playerid);*/
				SendClientMessageEx(playerid, COLOR_GREY, "You cannot permaban administrators.");
			}
			else
			{
				new playerip[32];
				GetPlayerIp(giveplayerid, playerip, sizeof(playerip));

				if(AdminDuty[giveplayerid] == 1)
				{
					new username[MAX_PLAYER_NAME];
					GetPVarString(giveplayerid, "TempNameName", username, sizeof(username));
					SetPVarInt(giveplayerid, "TempName", 0);
					SetPlayerName(giveplayerid, username);

					format(string, sizeof(string), "AdmCmd: %s(IP:%s) was permanently banned by %s, reason: %s", PlayerInfo[giveplayerid][pAdminName], playerip, GetPlayerNameEx(playerid), reason);
					Log("logs/ban.log", string);
					format(string, sizeof(string), "AdmCmd: %s was permanently banned by %s, reason: %s", PlayerInfo[giveplayerid][pAdminName], GetPlayerNameEx(playerid), reason);
				}
				else
				{
					format(string, sizeof(string), "AdmCmd: %s(IP:%s) was permanently banned by %s, reason: %s", GetPlayerNameEx(giveplayerid), playerip, GetPlayerNameEx(playerid), reason);
					Log("logs/ban.log", string);
					format(string, sizeof(string), "AdmCmd: %s was permanently banned by %s, reason: %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid), reason);
				}

				SendClientMessageToAllEx(COLOR_LIGHTRED, string);
				PlayerInfo[giveplayerid][pPermaBanned] = 1;
				new ip[32];
				GetPlayerIp(giveplayerid,ip,sizeof(ip));
				AddBan(ip);
				Kick(giveplayerid);

			}
			return 1;
		}
	}
	else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
	return 1;
}

43350 and 43328
[code]
CMD:f(playerid, params[]) {
	if(gFam[playerid] == 1)
		return SendClientMessage(playerid, TEAM_CYAN_COLOR, "You have your family chat disabled; /togfamily!");

	new string[128];

	if(isnull(params))
		return SendClientMessage(playerid, COLOR_GREY, "USAGE: (/f)amily [family chat]");

    //if(AntiAdv(playerid, params)) return 1;
	if(PlayerCuffed[playerid] > 0 || GetPVarInt(playerid, "Injured") == 1)
		return SendClientMessage(playerid, COLOR_GREY, "You can't talk over /f while you're cuffed, hospitalized or tazed.");

	if(PlayerInfo[playerid][pFaction] >= 1 || PlayerInfo[playerid][pGang] < 255) {
		new fam = PlayerInfo[playerid][pGang];

		new
		    szRank[64],
		    szDivision[64],
		    szEmployer[64];

  		GetPlayerFactionInfo(playerid, szRank, szDivision, szEmployer);

		if(PlayerInfo[playerid][pFaction] != 4 && PlayerInfo[playerid][pFaction] > 0) {
            format(string, sizeof(string), "** (( %s %s: %s )) **", szRank, GetPlayerNameEx(playerid), params);
			SendFamilyMessage(PlayerInfo[playerid][pFaction], TEAM_AZTECAS_COLOR, string);
		}
		else if(PlayerInfo[playerid][pFaction] == 4)
		{
			format(string, sizeof(string), "** %s %s %s: %s **", szDivision, szRank, GetPlayerNameEx(playerid), params);
			SendFamilyMessage(PlayerInfo[playerid][pFaction], TEAM_AZTECAS_COLOR, string);
		}
		else if(PlayerInfo[playerid][pGang] < 255) {

			new
				szMessage[128],
				szRank[64];

			switch(PlayerInfo[playerid][pRank])
			{
				case 1: format(szRank, sizeof(szRank), "%s", FamilyInfo[PlayerInfo[playerid][pGang]][FamilyRank1]);
				case 2: format(szRank, sizeof(szRank), "%s", FamilyInfo[PlayerInfo[playerid][pGang]][FamilyRank2]);
				case 3: format(szRank, sizeof(szRank), "%s", FamilyInfo[PlayerInfo[playerid][pGang]][FamilyRank3]);
				case 4: format(szRank, sizeof(szRank), "%s", FamilyInfo[PlayerInfo[playerid][pGang]][FamilyRank4]);
				case 5: format(szRank, sizeof(szRank), "%s", FamilyInfo[PlayerInfo[playerid][pGang]][FamilyRank5]);
				case 6: format(szRank, sizeof(szRank), "%s", FamilyInfo[PlayerInfo[playerid][pGang]][FamilyRank6]);
				default: format(szRank, sizeof(szRank), "%s", FamilyInfo[PlayerInfo[playerid][pGang]][FamilyRank1]);
			}
			if(PlayerInfo[playerid][pCrew1] == PlayerInfo[playerid][pGang]) { format(szMessage, sizeof(szMessage), "** (%i) %s %s (%s): %s  **", PlayerInfo[playerid][pRank], szRank, GetPlayerNameEx(playerid),FamilyInfo[playerid][FamilyCrewname1], params); }
		   	else if(PlayerInfo[playerid][pCrew2] == PlayerInfo[playerid][pGang]) { format(szMessage, sizeof(szMessage), "** (%i) %s %s (%s): %s  **", PlayerInfo[playerid][pRank], szRank, GetPlayerNameEx(playerid),FamilyInfo[playerid][FamilyCrewname2], params); }
   	 		else if(PlayerInfo[playerid][pCrew3] == PlayerInfo[playerid][pGang]) { format(szMessage, sizeof(szMessage), "** (%i) %s %s (%s): %s  **", PlayerInfo[playerid][pRank], szRank, GetPlayerNameEx(playerid),FamilyInfo[playerid][FamilyCrewname3], params); }
			else { format(szMessage, sizeof(szMessage), "** (%i) %s %s: %s  **", PlayerInfo[playerid][pRank], szRank, GetPlayerNameEx(playerid), params); }
			SendNewFamilyMessage(PlayerInfo[playerid][pGang], TEAM_AZTECAS_COLOR, szMessage);
  		}
		return 1;
	}
	else SendClientMessage(playerid, COLOR_GRAD2, "You're not a part of a Family!");

	return 1;
}
57466
[code]
	if(objectInfo[v][oModel] != 0 && objectInfo[v][oPosX] != 0.0 && objectInfo[v][oPosY] != 0.0 && objectInfo[v][oPosZ] != 0.0)
65137
[code]
new string[128];
66675
[code]
new gun = GetPlayerWeapon(playerid);
69393
[code]
if(IsPlayerInGangZone(LandInfo[i][landZone]))
69397
[code]
new Positions[3], Rotations[3];
69400
[code]
GetDynamicObjectPos(LandInfo[i][landObjects][x], Positions[0], Positions[1], Positions[2]);
69401
[code]
GetDynamicObjectRot(LandInfo[i][landObjects][x], Rotations[0], Rotations[1], Rotations[2]);
70200
[code]
stock CreateLandDoor(playerid, land, object, doortype)
70231
[code]
stock CreateLandObject(playerid, land, object)
71197
[code]
new String[128];
78347
[code]
new lstring[16384];
78368
[code]
new lstring[16384];
78392
[code]
GetDynamicObjectRot(LandInfo[land][landObjects][listitem], oldrot[0], oldrot[1], oldrot[2]);
78402
[code]
GetDynamicObjectRot(LandInfo[land][landObjects][listitem], oldrot[0], oldrot[1], oldrot[2]);
80821
[code]
new string[128];
1342 and 1341
[code]
 FireworkTotal = 0;//Make Firework back to 0
        Fired = 0;//Make Fired back to 0
[hr]
theres the code errors please help me
 
Top