Compiling error.
#1

I opened grandlarc.pwn gamemode, and i added lines and edited some, here is what i added and edited:

pawn Код:
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,200);
  SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL_SILENCED,1000);
  SetPlayerSkillLevel(playerid,WEAPONSKILL_DESERT_EAGLE,1000);
  SetPlayerSkillLevel(playerid,WEAPONSKILL_SHOTGUN,1000);
  SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,1000);
  SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN,1000);
  SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,100);
  SetPlayerSkillLevel(playerid,WEAPONSKILL_MP5,1000);
  SetPlayerSkillLevel(playerid,WEAPONSKILL_AK47,1000);
  SetPlayerSkillLevel(playerid,WEAPONSKILL_M4,1000);
  SetPlayerSkillLevel(playerid,WEAPONSKILL_SNIPERRIFLE,1000);
 
  GivePlayerWeapon(playerid,WEAPON_MP5,999999);
  GivePlayerWeapon(playerid,WEAPON_M4,999999);
  GivePlayerWeapon(playerid,WEAPON_PISTOL_SILENCED,999999);
  GivePlayerWeapon(playerid,WEAPON_MICRO_UZI,999999);
  GivePlayerWeapon(playerid,WEAPON_SAWNOFF_SHOTGUN,999999);
  GivePlayerWeapon(playerid,WEAPON_SNIPERRIFLE,999999);
OnPlayerSpawn itself:

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid)) return 1;
   
    new randSpawn = 0;
   
    SetPlayerInterior(playerid,0);
    TogglePlayerClock(playerid,0);
    ResetPlayerMoney(playerid);
    GivePlayerMoney(playerid,100);
   
    // if they ever return to class selection make them city
    // select again first
    gPlayerHasCitySelected[playerid] = 0;

    if(CITY_LOS_SANTOS == gPlayerCitySelection[playerid]) {
      randSpawn = random(sizeof(gRandomSpawns_LosSantos));
      SetPlayerPos(playerid,
         gRandomSpawns_LosSantos[randSpawn][0],
         gRandomSpawns_LosSantos[randSpawn][1],
         gRandomSpawns_LosSantos[randSpawn][2]);
        SetPlayerFacingAngle(playerid,gRandomSpawns_LosSantos[randSpawn][3]);
    }
    else if(CITY_SAN_FIERRO == gPlayerCitySelection[playerid]) {
      randSpawn = random(sizeof(gRandomSpawns_SanFierro));
      SetPlayerPos(playerid,
         gRandomSpawns_SanFierro[randSpawn][0],
         gRandomSpawns_SanFierro[randSpawn][1],
         gRandomSpawns_SanFierro[randSpawn][2]);
        SetPlayerFacingAngle(playerid,gRandomSpawns_SanFierro[randSpawn][3]);
    }
    else if(CITY_LAS_VENTURAS == gPlayerCitySelection[playerid]) {
      randSpawn = random(sizeof(gRandomSpawns_LasVenturas));
      SetPlayerPos(playerid,
         gRandomSpawns_LasVenturas[randSpawn][0],
         gRandomSpawns_LasVenturas[randSpawn][1],
         gRandomSpawns_LasVenturas[randSpawn][2]);
        SetPlayerFacingAngle(playerid,gRandomSpawns_LasVenturas[randSpawn][3]);
    }

    //SetPlayerColor(playerid,COLOR_NORMAL_PLAYER);
   
    SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,200);
  SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL_SILENCED,1000);
  SetPlayerSkillLevel(playerid,WEAPONSKILL_DESERT_EAGLE,1000);
  SetPlayerSkillLevel(playerid,WEAPONSKILL_SHOTGUN,1000);
  SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,1000);
  SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN,1000);
  SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,100);
  SetPlayerSkillLevel(playerid,WEAPONSKILL_MP5,1000);
  SetPlayerSkillLevel(playerid,WEAPONSKILL_AK47,1000);
  SetPlayerSkillLevel(playerid,WEAPONSKILL_M4,1000);
  SetPlayerSkillLevel(playerid,WEAPONSKILL_SNIPERRIFLE,1000);
 
  GivePlayerWeapon(playerid,WEAPON_MP5,999999);
  GivePlayerWeapon(playerid,WEAPON_M4,999999);
  GivePlayerWeapon(playerid,WEAPON_PISTOL_SILENCED,999999);
  GivePlayerWeapon(playerid,WEAPON_MICRO_UZI,999999);
  GivePlayerWeapon(playerid,WEAPON_SAWNOFF_SHOTGUN,999999);
  GivePlayerWeapon(playerid,WEAPON_SNIPERRIFLE,999999);
 
    return 1;
}
And i get these errors after compiling ( I DID NOT EDIT THE INCLUDE LINES!! ):
Код:
C:\Documents and Settings\Administrator\Desktop\SA-MP Stuff\server2\gamemodes\grandlarc.pwn(67) : error 017: undefined symbol "IsPlayerNPC"
C:\Documents and Settings\Administrator\Desktop\SA-MP Stuff\server2\gamemodes\grandlarc.pwn(107) : error 017: undefined symbol "SetPlayerSkillLevel"
C:\Documents and Settings\Administrator\Desktop\SA-MP Stuff\server2\gamemodes\grandlarc.pwn(108) : error 017: undefined symbol "SetPlayerSkillLevel"
C:\Documents and Settings\Administrator\Desktop\SA-MP Stuff\server2\gamemodes\grandlarc.pwn(109) : error 017: undefined symbol "SetPlayerSkillLevel"
C:\Documents and Settings\Administrator\Desktop\SA-MP Stuff\server2\gamemodes\grandlarc.pwn(110) : error 017: undefined symbol "SetPlayerSkillLevel"
C:\Documents and Settings\Administrator\Desktop\SA-MP Stuff\server2\gamemodes\grandlarc.pwn(111) : error 017: undefined symbol "SetPlayerSkillLevel"
C:\Documents and Settings\Administrator\Desktop\SA-MP Stuff\server2\gamemodes\grandlarc.pwn(112) : error 017: undefined symbol "SetPlayerSkillLevel"
C:\Documents and Settings\Administrator\Desktop\SA-MP Stuff\server2\gamemodes\grandlarc.pwn(113) : error 017: undefined symbol "SetPlayerSkillLevel"
C:\Documents and Settings\Administrator\Desktop\SA-MP Stuff\server2\gamemodes\grandlarc.pwn(114) : error 017: undefined symbol "SetPlayerSkillLevel"
C:\Documents and Settings\Administrator\Desktop\SA-MP Stuff\server2\gamemodes\grandlarc.pwn(115) : error 017: undefined symbol "SetPlayerSkillLevel"
C:\Documents and Settings\Administrator\Desktop\SA-MP Stuff\server2\gamemodes\grandlarc.pwn(116) : error 017: undefined symbol "SetPlayerSkillLevel"
C:\Documents and Settings\Administrator\Desktop\SA-MP Stuff\server2\gamemodes\grandlarc.pwn(117) : error 017: undefined symbol "SetPlayerSkillLevel"
C:\Documents and Settings\Administrator\Desktop\SA-MP Stuff\server2\gamemodes\grandlarc.pwn(121) : error 017: undefined symbol "WEAPON_PISTOL_SILENCED"
C:\Documents and Settings\Administrator\Desktop\SA-MP Stuff\server2\gamemodes\grandlarc.pwn(122) : error 017: undefined symbol "WEAPON_MICRO_UZI"
C:\Documents and Settings\Administrator\Desktop\SA-MP Stuff\server2\gamemodes\grandlarc.pwn(123) : error 017: undefined symbol "WEAPON_SAWNOFF_SHOTGUN"
C:\Documents and Settings\Administrator\Desktop\SA-MP Stuff\server2\gamemodes\grandlarc.pwn(124) : error 017: undefined symbol "WEAPON_SNIPERRIFLE"
C:\Documents and Settings\Administrator\Desktop\SA-MP Stuff\server2\gamemodes\grandlarc.pwn(315) : error 017: undefined symbol "IsPlayerNPC"
C:\Documents and Settings\Administrator\Desktop\SA-MP Stuff\server2\gamemodes\grandlarc.pwn(336) : error 017: undefined symbol "PLAYER_MARKERS_MODE_STREAMED"
C:\Documents and Settings\Administrator\Desktop\SA-MP Stuff\server2\gamemodes\grandlarc.pwn(452) : warning 203: symbol is never used: "gArmySpawns"
C:\Documents and Settings\Administrator\Desktop\SA-MP Stuff\server2\gamemodes\grandlarc.pwn(452) : warning 203: symbol is never used: "gMedicalSpawns"
C:\Documents and Settings\Administrator\Desktop\SA-MP Stuff\server2\gamemodes\grandlarc.pwn(452) : warning 203: symbol is never used: "gPoliceSpawns"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


18 Errors.
[/pawn]

And other errors are in other lines, And no, i did not edit a thing in the gamemode, i just edited the skills of the weapons, and spawning ammo
Reply


Messages In This Thread
Compiling error. - by Moustafa - 02.09.2009, 08:25
Re: Compiling error. - by Westie - 02.09.2009, 08:26
Re: Compiling error. - by Moustafa - 02.09.2009, 08:29
Re: Compiling error. - by Westie - 02.09.2009, 08:30
Re: Compiling error. - by pliva_sb - 02.09.2009, 08:31
Re: Compiling error. - by Moustafa - 02.09.2009, 08:41

Forum Jump:


Users browsing this thread: 1 Guest(s)