Jump to content
  • 0

Se blocheaza pawno


Guest Alxxie

Question

Lucram la un GameMode si am vrut sa adaug ceva la OnPlayerSpawn(ca sa nu ma dea mereu in acelasi loc).Vroiam sa bag ceva de genul:

public OnPlayerSpawn(playerid)
{
    new rand = random(3);
    switch(rand)
    {
        case 0: { SetPlayerPos(playerid, x, y, z);}
        case 1: { SetPlayerPos(playerid, x, y, z);}
        case 2: { SetPlayerPos(playerid, x, y, z);}
    }

// etc
    return 1;
}

Am pus ce aveam de pus dar cand am dat compile mi s-a blocat si a aparut eroarea aia cu don`t send.S-a creat totusi un fisier amx dar care are 0 kb.Am sters aia si am dat din nou compile.Culmea, acum s-a compilat fara probleme.

Ce ar putea sa aiba?? ??? Doar la GM-ul asta am avut problema asta.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
  • Similar Content

    • By Shad0wdpbgd
      Salut. Am zcmd-ul bagat in pawno -> include si degeaba... tot nu merge. am pus si in pawno #include <zcmd>, si imi zice "D:\Downloads\samp037_svr_R2-1-1_win32\gamemodes\Untitled.pwn(6) : fatal error 100: cannot read from file: "zcmd" si nu stiu ce are. Help plsss
    • By M4c
      Salutare, după cum zice si titlul, intentionez să deschid un server sa-mp ce rulează pe mysql, și când dau complie la gm, îmi dă eroarea asta.
      C:\Users\i\Desktop\main.pwn(57) : fatal error 100: cannot read from file: "amx\os" Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error. Am scos acel include, și tot aceași erroare mi-o dă, stie careva cum pot rezolva problema asta? Ms mult ! 
    • By Rafaly
      Salutare! Am si eu putin nevoie de ajutor ! 
      error 001: expected token: ";", but found "-identifier-"
    • By NuamNume
      Help pls
      public OnPlayerStateChange(playerid, newstate, oldstate)
      {
          if(newstate == PLAYER_STATE_DRIVER)
          {
              if(playerInfo[playerid][pFlyLicense] == 0 && isPlane(GetPlayerVehicleID(playerid)))
              {
                  sendPlayerError(playerid, "Nu ai licenta de pilot.");
                  ClearAnimations(playerid);
                  return true;
              }
              if(playerInfo[playerid][pBoatLicense] == 0 && isBoat(GetPlayerVehicleID(playerid)))
              {
                  sendPlayerError(playerid, "Nu ai licenta de navigatie.");
                  ClearAnimations(playerid);
                  return true;
              }
              if(playerInfo[playerid][pDrivingLicense] == 0 && !isBike(GetPlayerVehicleID(playerid)) && !isBoat(GetPlayerVehicleID(playerid)) && !isPlane(GetPlayerVehicleID(playerid)) && GetPlayerVehicleID(playerid) != playerInfo[playerid][pExamenVehicle])
              {
                  sendPlayerError(playerid, "Nu ai licenta de condus.");
                  ClearAnimations(playerid);
                  return true;
              }
              GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
              SetVehicleParamsEx(GetPlayerVehicleID(playerid), VEHICLE_PARAMS_OFF, lights, alarm, doors, bonnet, boot, objective);    
              if[vehicle_engine[GetPlayerVehicleID(playerid)])
                  SetVehicleParamsEx(GetPlayerVehicleID(playerid), VEHICLE_PARAMS_ON, lights, alarm, doors, bonnet, boot, objective);
              if(isBike(GetPlayerVehicleID(playerid)))
              {
                  SetVehicleParamsEx(GetPlayerVehicleID(playerid), VEHICLE_PARAMS_ON, lights, alarm, doors, bonnet, boot, objective);
                  vehicle_engine[GetPlayerVehicleID(playerid)] = true;
              }
          }
          if(newstate == PLAYER_STATE_ONFOOT || oldstate == PLAYER_STATE_DRIVER)
          {
              if(IsValidVehicle(playerInfo[playerid][pExamenVehicle]))
                  examenFail(playerid);
          }
          return 1;
      }
       
      public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
      {
          if(PRESSED(KEY_LOOK_BEHIND))
          {
              if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER || !isBike(GetPlayerVehicleID(playerid)) || GetPVarInt(playerid, "engineDeelay") != gettime())
              {
                  Command_ReProcess(playerid, "engine", false);
              }
          }
          if(PRESSED(KEY_ACTION))
          {
              if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER || !isBike(GetPlayerVehicleID(playerid)) || !isBoat(GetPlayerVehicleID(playerid)) || !isPlane(GetPlayerVehicleID(playerid)))
              {
                  Command_ReProcess(playerid, "lights", false);
              }
          }
          if(PRESSED(KEY_ANALOG_DOWN))
          {
              if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER || !isBike(GetPlayerVehicleID(playerid)) || !isBoat(GetPlayerVehicleID(playerid)) || !isPlane(GetPlayerVehicleID(playerid)))
              {
                  GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, objective);
                  return true;
              }
                  vehicle_boot[GetPlayerVehicleID(playerid)] = true;
                  SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, objective);    
                  return true;
              }
          }
          if(PRESSED(KEY_ANALOG_UP))
          {
              if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER || !isbike(GetPlayerVehicleID(playerid)) || !isBoat(GetPlayerVehicleID(playerid)) || !isPlane(GetPlayerVehicleID(playerid)))
              {
                  new engine, lights, alarm, doors, bonnet, boot, objective;
                  GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
                  if(vehicle_bonnet[GetPlayerVehicleID(playerid)]) == true)
                  {
                      vehicle_bonnet[GetPlayerVehicleID(playerid)] = false;
                      SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, objective);
                      return true;
                  }
                  vehicle_bonnet[GetPlayerVehicleID(playerid)] = true;
                  SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, VEHICLE_PARAMS_ON, VEHICLE_PARAMS_ON, objective)
              }
          }
          return 1;
      }
       
      Erori: 
      C:\Users\Raul\Desktop\Tuts GM\pawno\include\callbacks.inc(865) : warning 219: local variable "doors" shadows a variable at a preceding level
      C:\Users\Raul\Desktop\Tuts GM\pawno\include\callbacks.inc(866) : warning 219: local variable "lights" shadows a variable at a preceding level
      C:\Users\Raul\Desktop\Tuts GM\gamemodes\Tuts.pwn(704) : error 017: undefined symbol "engine"
      C:\Users\Raul\Desktop\Tuts GM\gamemodes\Tuts.pwn(705) : error 017: undefined symbol "lights"
      C:\Users\Raul\Desktop\Tuts GM\gamemodes\Tuts.pwn(706) : error 029: invalid expression, assumed zero
      C:\Users\Raul\Desktop\Tuts GM\gamemodes\Tuts.pwn(706) : error 001: expected token: ";", but found ")"
      C:\Users\Raul\Desktop\Tuts GM\gamemodes\Tuts.pwn(706) : error 029: invalid expression, assumed zero
      C:\Users\Raul\Desktop\Tuts GM\gamemodes\Tuts.pwn(706) : fatal error 107: too many error messages on one line
      Compilation aborted.
      Pawn compiler 3.10.8              Copyright (c) 1997-2006, ITB CompuPhase

      6 Errors.
      [Finished in 2.4s with exit code 1]
      [cmd: ['pawncc.exe', '-i includes', 'C:\\Users\\Raul\\Desktop\\Tuts GM\\gamemodes\\Tuts.pwn', '-;+']]
      [dir: C:\Users\Raul\Desktop\Tuts GM\gamemodes]
      [path: C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\] 
    • By MariaN47
      C:\Users\buloi\OneDrive\Desktop\Gamemode 0\gamemodes\gamemode.pwn(124) : error 010: invalid function or declaration
      C:\Users\buloi\OneDrive\Desktop\Gamemode 0\gamemodes\gamemode.pwn(132) : error 010: invalid function or declaration
      C:\Users\buloi\OneDrive\Desktop\Gamemode 0\gamemodes\gamemode.pwn(731) : error 017: undefined symbol "leave_derby"
      C:\Users\buloi\OneDrive\Desktop\Gamemode 0\gamemodes\gamemode.pwn(733) : warning 217: loose indentation
      C:\Users\buloi\OneDrive\Desktop\Gamemode 0\gamemodes\gamemode.pwn(751) : error 017: undefined symbol "leave_derby"
      C:\Users\buloi\OneDrive\Desktop\Gamemode 0\gamemodes\gamemode.pwn(759) : error 017: undefined symbol "leave_derby"
      C:\Users\buloi\OneDrive\Desktop\Gamemode 0\gamemodes\gamemode.pwn(767) : error 017: undefined symbol "i"
      C:\Users\buloi\OneDrive\Desktop\Gamemode 0\gamemodes\gamemode.pwn(770) : error 017: undefined symbol "i"
      C:\Users\buloi\OneDrive\Desktop\Gamemode 0\gamemodes\gamemode.pwn(771) : error 017: undefined symbol "leave_derby"
      Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase
      //linia 124function leave_derby(playerid){ SetPlayerVirtualWorld(playerid, 0); SetVehicleVirtualWorld(derbyVehicle[playerid, 1337); SpawnPlayer(playerid); inDerby[playerid] = 0; derbyPlayers --; derbyVehicle[playerid] = 0; //131 return 1; } if(derbyStatus == 0) { if(derbyTime > 0) { derbyTime --; if(derbyPlayers <1){ //< 2 foreach(new i : Player){ //linia 731 if(inDerby[i] == 1) leave_derby(i), SendClientMessage(i, COLOR_YELLOW, "Prea putini jucatori."); } derbyStatus = 0; derbyTime = 30; } else { derbyStatus = 1; derbyTime = 60; SendDerby(COLOR_YELLOW, "Runda a inceput!"); foreach(new i : Player){ if(inDerby[i]) TogglePlayerControllable(i, 1); } } } } if(derbyStatus == 1) { if(derbyTime > 0) { derbyTime --; if(derbyTime == 0) { foreach(new i : Player) { //linia 751 if(inDerby[i] == 1) leave_derby(i); } derbyStatus = 0; derbyTime = 30; } else { if(derbyPlayers == 0) { // == 1 foreach(new i : Player){ //linia 759 if(inDerby[i] == 1) leave_derby(i), SendClientMessage(i, COLOR_YELLOW, "Felicitari ai castigat!"); } derbyStatus = 0; derbyTime = 30; } } } } //linia 767 if(inDerby[i] == 1) { if(derbyStatus == 1) { new Float:Pozitie[3]; //linia 770 GetPlayerPos(i, Pozitie[0], Pozitie[1], Pozitie[2]); // 771 if(Pozitie[2] < 150.49609) leave_derby(i); } } return 1; }  
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.