a few errors while scripting
#1

hello, the errors are:
Quote:

D:\games\GTA San Andreas\gamemodes\SuperStunt.pwn(1983) : warning 213: tag mismatch
D:\games\GTA San Andreas\gamemodes\SuperStunt.pwn(1984) : error 035: argument type mismatch (argument 2)
D:\games\GTA San Andreas\gamemodes\SuperStunt.pwn(1984) : warning 215: expression has no effect
D:\games\GTA San Andreas\gamemodes\SuperStunt.pwn(1984) : error 001: expected token: ";", but found "]"
D:\games\GTA San Andreas\gamemodes\SuperStunt.pwn(1984) : error 029: invalid expression, assumed zero
D:\games\GTA San Andreas\gamemodes\SuperStunt.pwn(1984) : fatal error 107: too many error messages on one line

(lines 1983 - 1985):
Quote:

if(ZoneTakeOverTeam[i] != -1) GangZoneFlashForPlayer(playerid, ZoneInfo[i][z_id], GetTeamColor(ZoneTakeOverTeam[i]));
GangZoneShowForPlayer (playerid, ZoneInfo[i], [z_id]);
GetTeamColor(ZoneInfo[i][z_team], Color);

and more errors:
Quote:

D:\games\GTA San Andreas\gamemodes\SuperStunt.pwn(1856) : warning 219: local variable "pName" shadows a variable at a preceding level

lines 1856 - 1857:
Quote:

new pName[MAX_PLAYER_NAME];
new string[128];

Reply
#2

sorry about the double but i wasted about 2 months in this script and i really want help
Reply
#3

GangZoneShowForPlayer (playerid, ZoneInfo[z_id]);

and

change pName with plName
Reply
#4

ok the pName is fixed
i got more errors:
Quote:

D:\games\GTA San Andreas\gamemodes\SuperStunt.pwn(1984) : warning 213: tag mismatch
D:\games\GTA San Andreas\gamemodes\SuperStunt.pwn(1984) : error 035: argument type mismatch (argument 2)
D:\games\GTA San Andreas\gamemodes\SuperStunt.pwn(1985) : error 029: invalid expression, assumed zero
D:\games\GTA San Andreas\gamemodes\SuperStunt.pwn(1985) : warning 215: expression has no effect
D:\games\GTA San Andreas\gamemodes\SuperStunt.pwn(1985) : error 001: expected token: ";", but found "]"
D:\games\GTA San Andreas\gamemodes\SuperStunt.pwn(1985) : error 029: invalid expression, assumed zero
D:\games\GTA San Andreas\gamemodes\SuperStunt.pwn(1985) : fatal error 107: too many error messages on one line

lines:
Quote:

GangZoneFlashForPlayer(playerid, ZoneInfo[z_id]);
GetTeamColor(ZoneTakeOverTeam[i], [z_id]);

Reply
#5

up
Reply
#6

Quote:

GangZoneFlashForPlayer(playerid, ZoneInfo[z_id]);
GetTeamColor(ZoneTakeOverTeam[i], [z_id]);

Код:
GangZoneFlashForPlayer(playerid, ZoneInfo[z_id], flashcolor);
Check:
Код:
GetTeamColor(ZoneTakeOverTeam, z_id);
If there will be errors, please show your function GetTeamColor.

Reply
#7

Hello Rorchack,

Here is GetteamColours:


Код:
GetTeamColor(team)
{
	switch(team)
	{
  case TEAM_COP: return COLOR_COP;
  case TEAM_BALLAS: return COLOR_BALLAS;
  case TEAM_GROVE: return COLOR_GROVE;
  case TEAM_VAGOS: return COLOR_VAGOS;
  case TEAM_LOS_AZTECAS: return COLOR_LOS_AZTECAS;
  case TEAM_NANG: return 0xFFFFFFAA;
  case TEAM_TRIAD: return TEAM_COLOR_TRIAD;
  case TEAM_RIFA: return COLOR_RIFA;
	}
	return 0;
}
Reply
#8

yes these are the GetTeamColor
Reply
#9

WE need it, someone? help us out
Reply
#10

Try:
Код:
GetTeamColor(ZoneTakeOverTeam[z_id]);
Then show your warnings.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)