Wtf is this ?
#1

Guys i learn how to do jobs it was all cool with jobs is nothing wrong but then ...

C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(23) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(27) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(31) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(35) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(39) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(43) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(47) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(51) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(55) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(59) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(63) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(67) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(71) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(77) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(81) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(85) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(89) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(93) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(119) : error 017: undefined symbol "main"
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(186) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(186) : error 004: function "OnGameModeInit" is not implemented
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(212) : warning 225: unreachable code
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(212) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(212) : error 004: function "OnGameModeExit" is not implemented
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(217) : warning 225: unreachable code
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(217) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(217) : error 004: function "OnPlayerRequestClass" is not implemented
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(219) : error 017: undefined symbol "classid"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.

WTF can u help this make me now 4th time
Reply
#2

You're probably missing a bracket.
Reply
#3

we cant help you if u dont show us your script
Reply
#4

Quote:
Originally Posted by Don Correlli
You're probably missing a bracket.
Yeah, you misseda bracket, probally at the endin of yo command. when yo open a new statment etc :

If(pFaction= 1)
{

You gotta put a
}

Ex :

}
return 1;
Reply
#5

We can't mind-read your code.
Reply
#6

Quote:
Originally Posted by efeX
We can't mind-read your code.
Pfft, speak for yourself *closes eyes* woooeeeoooeeeooo
Reply
#7

ok sry guys here it is:

#include <a_samp>
#include <core>
#include <a_vehicles>


#define TEAM_COP
#define TEAM_COP_COLOR 0x0000BBAA
#define TEAM_FBI
#define TEAM_FBI_COLOR 0x660000AA
#define TEAM_MEDIC
#define TEAM_MEDIC_COLOR 0x0000BBAA
#define TEAM_AIRFORCE
#define TEAM_AIRFORCE_COLOR 0x24FF0AB9
#define TEAM_TAXI
#define TEAM_TAXI_COLOR 0xFFFF00AA

new gTeam[MAX_PLAYERS];

SetPlayerTeamFromClass(playerid, classid)
{
if (classid == 28
{
gTeam[playerid] = TEAM_COP;
}
else if (classid == 283)
{
gTeam[playerid] = TEAM_COP;
}
else if (classid == 283)
{
gTeam[playerid] = TEAM_COP;
}
else if (classid == 274)
{
gTeam[playerid] = TEAM_MEDIC;
}
else if (classid == 275)
{
gTeam[playerid] = TEAM_MEDIC;
}
else if (classid == 276)
{
gTeam[playerid] = TEAM_MEDIC;
}
else if (classid == 163)
{
gTeam[playerid] = TEAM_FBI;
}
else if (classid == 164)
{
gTeam[playerid] = TEAM_FBI;
}
else if (classid == 165)
{
gTeam[playerid] = TEAM_FBI;
}
else if (classid == 166)
{
gTeam[playerid] = TEAM_FBI;
}
else if (classid == 121)
{
gTeam[playerid] = TEAM_AIRFORCE;
}
else if (classid == 179)
{
gTeam[playerid] = TEAM_AIRFORCE;
}
else if (classid == 55)
{
gTeam[playerid] = TEAM_TAXI;
}
}

SetPlayerToTeamColor(playerid)
{
if (gTeam[playerid] == TEAM_COP)
{
SetPlayerColor(playerid, TEAM_COP_COLOR);
}
else if (gTeam[playerid] == TEAM_MEDIC)
{
SetPlayerColor(playerid, TEAM_MEDIC_COLOR);
}
else if (gTeam[playerid] == TEAM_MEDIC)
{
SetPlayerColor(playerid, TEAM_MEDIC_COLOR);
}
else if (gTeam[playerid] == TEAM_AIRFORCE)
{
SetPlayerColor(playerid, TEAM_AIRFORCE_COLOR);
}
else if (gTeam[playerid] == TEAM_TAXI)
{
SetPlayerColor(playerid, TEAM_TAXI_COLOR);
}

#if defined FILTERSCRIPT

#else

main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}

#endif

//COLORS
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_BLUE 0x0000BBAA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_DARKRED 0x660000AA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_BRIGHTRED 0xFF0000AA
#define COLOR_INDIGO 0x4B00B0AA
#define COLOR_VIOLET 0x9955DEEE
#define COLOR_LIGHTRED 0xFF99AADD
#define COLOR_SEAGREEN 0x00EEADDF
#define COLOR_GRAYWHITE 0xEEEEFFC4
#define COLOR_LIGHTNEUTRALBLUE 0xabcdef66
#define COLOR_GREENISHGOLD 0xCCFFDD56
#define COLOR_LIGHTBLUEGREEN 0x0FFDD349
#define COLOR_NEUTRALBLUE 0xABCDEF01
#define COLOR_LIGHTCYAN 0xAAFFCC33
#define COLOR_LEMON 0xDDDD2357
#define COLOR_MEDIUMBLUE 0x63AFF00A
#define COLOR_NEUTRAL 0xABCDEF97
#define COLOR_BLACK 0x00000000
#define COLOR_NEUTRALGREEN 0x81CFAB00
#define COLOR_DARKGREEN 0x12900BBF
#define COLOR_LIGHTGREEN 0x24FF0AB9
#define COLOR_DARKBLUE 0x300FFAAB
#define COLOR_BLUEGREEN 0x46BBAA00
#define COLOR_PINK 0xFF66FFAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_DARKRED 0x660000AA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_PURPLE 0x800080AA
#define COLOR_GRAD1 0xB4B5B7FF
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_RED1 0xFF0000AA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_BROWN 0x993300AA
#define COLOR_CYAN 0x99FFFFAA
#define COLOR_TAN 0xFFFFCCAA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_KHAKI 0x999900AA
#define COLOR_LIME 0x99FF00AA
#define COLOR_SYSTEM 0xEFEFF7AA
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_GRAD4 0xD8D8D8FF
#define COLOR_GRAD6 0xF0F0F0FF
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_GRAD3 0xCBCCCEFF
#define COLOR_GRAD5 0xE3E3E3FF
#define COLOR_GRAD1 0xB4B5B7FF

public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
//MEDIC'S
AddPlayerClass(274,1607.1361,1820.2712,10.8280,0.5 015,0,0,0,0,0,0); // MEDIC
AddPlayerClass(275,1614.9767,1820.2704,10.8280,2.0 682,0,0,0,0,0,0); // MEDIC
AddPlayerClass(276,1599.9725,1820.8362,10.8203,358 .9348,0,0,0,0,0,0); // MEDIC
//COP'S
AddPlayerClass(288,-215.2224,977.9517,19.4878,269.7672,0,0,0,0,0,0); // Fort Carson Sherif
AddPlayerClass(283,-215.3469,980.7720,19.4937,271.3338,0,0,0,0,0,0); //Fort Carson Sherif
AddPlayerClass(192,2239.0042,2449.4736,11.0372,267 .9772,0,0,0,0,0,0); // 12.spawm police police station in LV- emerde isle
//FBI'S
AddPlayerClass(163,945.8929,1728.4990,8.8516,268.5 575,0,0,0,0,0,0); // FBI at Whitewood estate
AddPlayerClass(164,945.8641,1731.7333,8.8516,271.0 641,0,0,0,0,0,0); // FBI at Whitewood estate
AddPlayerClass(165,945.9214,1734.8145,8.8516,272.9 442,0,0,0,0,0,0); // FBI at Whitewood estate
AddPlayerClass(166,945.7820,1737.5703,8.8516,273.8 842,0,0,0,0,0,0); // FBI at Whitewood estate
//AIRFORCE'S
AddPlayerClass(121,283.0263,1937.0424,17.6406,270. 6100,0,0,0,0,0,0); // Airforce at Arena 69
AddPlayerClass(179,279.2265,1835.0978,17.6481,11.4 120,0,0,0,0,0,0); // Airforce at Arena 69
//TAXI'S
AddPlayerClass(55,2846.2561,1289.7943,11.3906,88.8 027,0,0,0,0,0,0); // TAXI at Taxi station in LV

return 1;
}

public OnGameModeExit()
{
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerTeamFromClass(playerid, classid);

SetPlayerPos(playerid, 2006.3486,1669.9321,13.3020);
SetPlayerFacingAngle(playerid,269.1799);
SetPlayerCameraPos(playerid, 2018.2972,1669.7803,11.1539);
SetPlayerCameraLookAt(playerid, 2006.3486,1669.9321,13.3020);
return 1;
}

public OnPlayerRequestSpawn(playerid)
{
return 1;
}

public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,0x33AA33AA,"Welcome to the server");
SendClientMessage(playerid,0x33AA33AA,"Read /rules /scmds For Start Playing Easier");
SendClientMessage(playerid,0x33CCFFAA,"Die Hard Cops and Robbers Server! Play Fair and Have Fun");
GameTextForPlayer(playerid,"~r~Die Hard ~w~Server Cops and Robbers ~r~MAP:~b~Las Venturas ~y~Have Fun ~r~And Read /rules /scmds",5000,5);

return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
return 1;
}

public OnPlayerSpawn(playerid)
{
SetPlayerToTeamColor(playerid);
GivePlayerMoney(playerid,1000);
return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
SendClientMessage(playerid,0xAA3333AA,"You are death! R.I.P");
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid,-500);
SetPlayerScore(playerid,-1);

return 1;
}

thats all what i have for my gamemode atm i am adding teams u can see on start of script

try t ohelp me now

TY
Reply
#8

Код:
SetPlayerToTeamColor(playerid)
{
  if (gTeam[playerid] == TEAM_COP)
  {
   SetPlayerColor(playerid, TEAM_COP_COLOR);
  }
  else if (gTeam[playerid] == TEAM_MEDIC)
  {
   SetPlayerColor(playerid, TEAM_MEDIC_COLOR);
  }
  else if (gTeam[playerid] == TEAM_MEDIC)
  {
   SetPlayerColor(playerid, TEAM_MEDIC_COLOR);
  }
  else if (gTeam[playerid] == TEAM_AIRFORCE)
  {
   SetPlayerColor(playerid, TEAM_AIRFORCE_COLOR);
  }
  else if (gTeam[playerid] == TEAM_TAXI)
  {
   SetPlayerColor(playerid, TEAM_TAXI_COLOR);
}
make that like this:

pawn Код:
SetPlayerToTeamColor(playerid)
{
  if (gTeam[playerid] == TEAM_COP)
  {
   SetPlayerColor(playerid, TEAM_COP_COLOR);
  }
  else if (gTeam[playerid] == TEAM_MEDIC)
  {
   SetPlayerColor(playerid, TEAM_MEDIC_COLOR);
  }
  else if (gTeam[playerid] == TEAM_MEDIC)
  {
   SetPlayerColor(playerid, TEAM_MEDIC_COLOR);
  }
  else if (gTeam[playerid] == TEAM_AIRFORCE)
  {
   SetPlayerColor(playerid, TEAM_AIRFORCE_COLOR);
  }
  else if (gTeam[playerid] == TEAM_TAXI)
  {
   SetPlayerColor(playerid, TEAM_TAXI_COLOR);
  }
}
Reply
#9

uf nice u help me to lsoe some errors just 18 errors more and we done

#include <a_samp>
#include <core>
#include <a_vehicles>


#define TEAM_COP
#define TEAM_COP_COLOR 0x0000BBAA
#define TEAM_FBI
#define TEAM_FBI_COLOR 0x660000AA
#define TEAM_MEDIC
#define TEAM_MEDIC_COLOR 0x0000BBAA
#define TEAM_AIRFORCE
#define TEAM_AIRFORCE_COLOR 0x24FF0AB9
#define TEAM_TAXI
#define TEAM_TAXI_COLOR 0xFFFF00AA

new gTeam[MAX_PLAYERS];

SetPlayerTeamFromClass(playerid, classid)
{
if (classid == 28
{
gTeam[playerid] = TEAM_COP; --- line 23
}
else if (classid == 283)
{
gTeam[playerid] = TEAM_COP; --- line 27
}
else if (classid == 283)
{
gTeam[playerid] = TEAM_COP; --- line 31
}
else if (classid == 274)
{
gTeam[playerid] = TEAM_MEDIC; --- line 35
}
else if (classid == 275)
{
gTeam[playerid] = TEAM_MEDIC; --- line 39
}
else if (classid == 276)
{
gTeam[playerid] = TEAM_MEDIC; --- line 43
}
else if (classid == 163)
{
gTeam[playerid] = TEAM_FBI; --- line 47
}
else if (classid == 164)
{
gTeam[playerid] = TEAM_FBI; --- line 51
}
else if (classid == 165)
{
gTeam[playerid] = TEAM_FBI; --- line 55
}
else if (classid == 166)
{
gTeam[playerid] = TEAM_FBI; --- line 59
}
else if (classid == 121)
{
gTeam[playerid] = TEAM_AIRFORCE; --- line 63
}
else if (classid == 179)
{
gTeam[playerid] = TEAM_AIRFORCE; --- line 67
}
else if (classid == 55)
{
gTeam[playerid] = TEAM_TAXI; --- line 71
}
}

SetPlayerToTeamColor(playerid)
{
if (gTeam[playerid] == TEAM_COP) --- line 77
{
SetPlayerColor(playerid, TEAM_COP_COLOR);
}
else if (gTeam[playerid] == TEAM_MEDIC) --- line 81
{
SetPlayerColor(playerid, TEAM_MEDIC_COLOR);
}
else if (gTeam[playerid] == TEAM_MEDIC) --- line 85
{
SetPlayerColor(playerid, TEAM_MEDIC_COLOR);
}
else if (gTeam[playerid] == TEAM_AIRFORCE) --- line 89
{
SetPlayerColor(playerid, TEAM_AIRFORCE_COLOR);
}
else if (gTeam[playerid] == TEAM_TAXI) --- line 93
{
SetPlayerColor(playerid, TEAM_TAXI_COLOR);
}

C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(23) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(27) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(31) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(35) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(39) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(43) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(47) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(51) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(55) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(59) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(63) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(67) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(71) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(77) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(81) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(85) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(89) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(93) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


18 Errors.


i write u lines now u can help ? please
Reply
#10

Quote:
Originally Posted by pawn-lang.pdf
Error 029: Invalid expression, assumed zero.
The compiler could not interpret the expression.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)