Scripting Help
#1

i need some help with some problems... been at it for maybe 2 hours so far

This is error code
C:\Users\*****\Desktop\SAMP Server\gamemodes\WSFMGangWars.pwn(120) : error 017: undefined symbol "admins"

This is where the error is
Код:
  admins = GangZoneCreate(1293.50, 1216.61, 1363.63, 1376,24);
Another error
C:\Users\*****\Desktop\SAMP Server\gamemodes\WSFMGangWars.pwn(284) : error 002: only a single statement (or expression) can follow each "case"

This is where the error is
Код:
	SetPlayerPos(playerid, 2524.2695,-1696.2926,18.2204);
Another Error
C:\Users\*****\Desktop\SAMP Server\gamemodes\WSFMGangWars.pwn(307) : error 029: invalid expression, assumed zero

This is where the error is
Код:
public OnPlayerRequestSpawn(playerid)
Another error
C:\Users\*****\Desktop\SAMP Server\gamemodes\WSFMGangWars.pwn(307) : error 004: function "OnPlayerRequestSpawn" is not implemented

This is where the error is

Код:
}

public OnPlayerRequestSpawn(playerid)
{
Another error
C:\Users\*****\Desktop\SAMP Server\gamemodes\WSFMGangWars.pwn(327) : error 004: function "OnPlayerDisconnect" is not implemented

This is where error is
Код:
}

public OnPlayerDisconnect(playerid, reason)
{
help please thanks

EDIT:
Error 1, this is more info about the error may help more

Код:
	//GANG ZONES
	astecs = GangZoneCreate(1489.865, -2179.277, 1969.022, -1752.921);
	grove1 = GangZoneCreate(2083.108, -2052.949, 2691.561, -1930.57);
	grove2 = GangZoneCreate(2204.798, -1942.413, 2600.293, -1492.37);
  ballas = GangZoneCreate(1858.74, -1373.938, 2425.363, -1042.328);
  vagos = GangZoneCreate(2600.293, -2056.897, 2915.929, -1069.962);
  polis = GangZoneCreate(1524.091, -1745.026, 1619.162, -1591.064);
  ortak = GangZoneCreate(668.4526, -1737.13, 1429.02, -896.5614);
  admins = GangZoneCreate(1293.50, 1216.61, 1363.63, 1376,24);
Error 2:
Код:
			{
			  gTeam[playerid] = TEAM_ADMINS;
		  	GameTextForPlayer(playerid, "~r~~h~~h~Admins", 1000, 6);
	}
	SetPlayerPos(playerid, 2524.2695,-1696.2926,18.2204);
	SetPlayerFacingAngle( playerid, 2.3616 );
	SetPlayerCameraPos(playerid, 2523.7749,-1692.6855,18.9011);
	SetPlayerCameraLookAt(playerid, 2524.2695,-1696.2926,18.2204);
	return 1;
Error 3:
Код:
public SetPlayerToTeamColor(playerid)
{
	if(gTeam[playerid] == TEAM_GROVE) {
		SetPlayerColor(playerid,COLOR_GREEN);
	} else if(gTeam[playerid] == TEAM_BALLAS) {
	  SetPlayerColor(playerid,COLOR_PURPLE);
	} else if(gTeam[playerid] == TEAM_VAGOS) {
	  SetPlayerColor(playerid,COLOR_YELLOW);
	} else if(gTeam[playerid] == TEAM_AZTECAS) {
	  SetPlayerColor(playerid,COLOR_BLUELIGHT);
	} else if(gTeam[playerid] == TEAM_LSPD) {
	  SetPlayerColor(playerid,COLOR_GOLD);
	} else if(gTeam[playerid] == TEAM_ADMINS) {
	  SetPlayerColor(playerid,COLOR_BLUE);
}

public OnPlayerRequestSpawn(playerid)
{
	return 1;
}
Error 4:
Код:
public OnPlayerDisconnect(playerid, reason)
{
  new PName[MAX_PLAYER_NAME];
  new String[128];
  GetPlayerName(playerid, PName, sizeof(PName));

  switch(reason)
  {
    case 0: format(String, sizeof(String), "%s lost connection to the server.", PName);
    case 1: format(String, sizeof(String), "%s has left the server.", PName);
    case 2: format(String, sizeof(String), "%s has left the server. (kicked)", PName);
  }
	return 1;
}
Hope it brings more help
Reply
#2

With the First Error.

At the top of the Gamemode put in
pawn Код:
new Admins;
With the Second Error.

I need see the whole function where its in.

With the Third and fourth Error.

At the Bottom of both of them below the other stuff!
Add
pawn Код:
return 1;
This may help!
Reply
#3

btw the new admins thing helped with 1 error thanks for that part
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)