Jump to content

Recommended Posts

  • 4 months later...
Posted

Ma ajuta cineva? e primul script:))

D:\GAMES\Trafic\filterscripts\hunter.pwn(8) : warning 235: public function lacks forward declaration (symbol "OnGameModeInit")
D:\GAMES\Trafic\filterscripts\hunter.pwn(11) : error 017: undefined symbol "AddStaticVehicle"
D:\GAMES\Trafic\filterscripts\hunter.pwn(20) : error 029: invalid expression, assumed zero
D:\GAMES\Trafic\filterscripts\hunter.pwn(20) : error 017: undefined symbol "OnPlayerStateChange"
D:\GAMES\Trafic\filterscripts\hunter.pwn(23) : error 017: undefined symbol "GetPlayerName"
D:\GAMES\Trafic\filterscripts\hunter.pwn(23) : warning 202: number of arguments does not match definition
D:\GAMES\Trafic\filterscripts\hunter.pwn(25) : error 017: undefined symbol "newstate"
D:\GAMES\Trafic\filterscripts\hunter.pwn(27) : error 017: undefined symbol "GetPlayerVehicleID"
D:\GAMES\Trafic\filterscripts\hunter.pwn(28) : warning 217: loose indentation
D:\GAMES\Trafic\filterscripts\hunter.pwn(30) : error 017: undefined symbol "strcmp"
D:\GAMES\Trafic\filterscripts\hunter.pwn(32) : error 017: undefined symbol "RemovePlayerFromVehicle"
D:\GAMES\Trafic\filterscripts\hunter.pwn(33) : error 017: undefined symbol "SendClientMessage"
D:\GAMES\Trafic\filterscripts\hunter.pwn(39) : error 030: compound statement not closed at the end of file (started at line 11)
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


10 Errors.
new admincar;






public OnGameModeInit()
{

admincar = AddStaticVehicle(424,1513.2959,-697.6833,94.5061,94.3205,66,66); // Vehicul








public OnPlayerStateChange(playerid, newstate, oldstate)
{
   new PlayerName[24];
   GetPlayerName(playerid, PlayerName, sizeof(PlayerName));

   if(newstate == PLAYER_STATE_DRIVER)
   {
      new Vehicle = GetPlayerVehicleID(playerid);
     if(Vehicle == admincar)
      {
         if(strcmp(PlayerName,"The_Hunter",true))
         {
            RemovePlayerFromVehicle(playerid);
            SendClientMessage(playerid, 0x33AA33AA, "Imi pare rau , Aceasta masina este a lui The_Hunter");
         }
      }
   }
   return 1;
}

Posted

Ma ajuta cineva? e primul script:))

D:\GAMES\Trafic\filterscripts\hunter.pwn(8) : warning 235: public function lacks forward declaration (symbol "OnGameModeInit")
D:\GAMES\Trafic\filterscripts\hunter.pwn(11) : error 017: undefined symbol "AddStaticVehicle"
D:\GAMES\Trafic\filterscripts\hunter.pwn(20) : error 029: invalid expression, assumed zero
D:\GAMES\Trafic\filterscripts\hunter.pwn(20) : error 017: undefined symbol "OnPlayerStateChange"
D:\GAMES\Trafic\filterscripts\hunter.pwn(23) : error 017: undefined symbol "GetPlayerName"
D:\GAMES\Trafic\filterscripts\hunter.pwn(23) : warning 202: number of arguments does not match definition
D:\GAMES\Trafic\filterscripts\hunter.pwn(25) : error 017: undefined symbol "newstate"
D:\GAMES\Trafic\filterscripts\hunter.pwn(27) : error 017: undefined symbol "GetPlayerVehicleID"
D:\GAMES\Trafic\filterscripts\hunter.pwn(28) : warning 217: loose indentation
D:\GAMES\Trafic\filterscripts\hunter.pwn(30) : error 017: undefined symbol "strcmp"
D:\GAMES\Trafic\filterscripts\hunter.pwn(32) : error 017: undefined symbol "RemovePlayerFromVehicle"
D:\GAMES\Trafic\filterscripts\hunter.pwn(33) : error 017: undefined symbol "SendClientMessage"
D:\GAMES\Trafic\filterscripts\hunter.pwn(39) : error 030: compound statement not closed at the end of file (started at line 11)
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


10 Errors.
new admincar;






public OnGameModeInit()
{

admincar = AddStaticVehicle(424,1513.2959,-697.6833,94.5061,94.3205,66,66); // Vehicul








public OnPlayerStateChange(playerid, newstate, oldstate)
{
   new PlayerName[24];
   GetPlayerName(playerid, PlayerName, sizeof(PlayerName));

   if(newstate == PLAYER_STATE_DRIVER)
   {
      new Vehicle = GetPlayerVehicleID(playerid);
     if(Vehicle == admincar)
      {
         if(strcmp(PlayerName,"The_Hunter",true))
         {
            RemovePlayerFromVehicle(playerid);
            SendClientMessage(playerid, 0x33AA33AA, "Imi pare rau , Aceasta masina este a lui The_Hunter");
         }
      }
   }
   return 1;
}
corect e:
#include <a_samp>

new admincar;


public OnGameModeInit()
{
    admincar = AddStaticVehicle(424,1513.2959,-697.6833,94.5061,94.3205,66,66); // Vehicul
}


public OnPlayerStateChange(playerid, newstate, oldstate)
{
   new PlayerName[24];
   GetPlayerName(playerid, PlayerName, sizeof(PlayerName));

   if(newstate == PLAYER_STATE_DRIVER)
   {
      new Vehicle = GetPlayerVehicleID(playerid);
     if(Vehicle == admincar)
      {
         if(strcmp(PlayerName,"The_Hunter",true))
         {
            RemovePlayerFromVehicle(playerid);
            SendClientMessage(playerid, 0x33AA33AA, "Imi pare rau , Aceasta masina este a lui The_Hunter");
         }
      }
   }
   return 1;
}

Posted

e exact cum ai scris tu

D:\GAMES\Trafic\filterscripts\hunter.pwn(20) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.

Posted

e exact cum ai scris tu

D:\GAMES\Trafic\filterscripts\hunter.pwn(20) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.
atunci pune:
#include <a_samp>

#pragma tabsize 0

new admincar;


public OnGameModeInit()
{
    admincar = AddStaticVehicle(424,1513.2959,-697.6833,94.5061,94.3205,66,66); // Vehicul
}


public OnPlayerStateChange(playerid, newstate, oldstate)
{
   new PlayerName[24];
   GetPlayerName(playerid, PlayerName, sizeof(PlayerName));

   if(newstate == PLAYER_STATE_DRIVER)
   {
      new Vehicle = GetPlayerVehicleID(playerid);
     if(Vehicle == admincar)
      {
         if(strcmp(PlayerName,"The_Hunter",true))
         {
            RemovePlayerFromVehicle(playerid);
            SendClientMessage(playerid, 0x33AA33AA, "Imi pare rau , Aceasta masina este a lui The_Hunter");
         }
      }
   }
   return 1;
}

  • 2 years later...
Posted

Posteaza eroarea si liniile

 

C:\Games\SFR V1.9\pawno\Nuova cartella\mycar.pwn(8) : warning 235: public function lacks forward declaration (symbol "OnGameModeInit")

C:\Games\SFR V1.9\pawno\Nuova cartella\mycar.pwn(11) : error 017: undefined symbol "AddStaticVehicle"

C:\Games\SFR V1.9\pawno\Nuova cartella\mycar.pwn(20) : error 029: invalid expression, assumed zero

C:\Games\SFR V1.9\pawno\Nuova cartella\mycar.pwn(20) : error 017: undefined symbol "OnPlayerStateChange"

C:\Games\SFR V1.9\pawno\Nuova cartella\mycar.pwn(23) : error 017: undefined symbol "GetPlayerName"

C:\Games\SFR V1.9\pawno\Nuova cartella\mycar.pwn(23) : warning 202: number of arguments does not match definition

C:\Games\SFR V1.9\pawno\Nuova cartella\mycar.pwn(25) : error 017: undefined symbol "newstate"

C:\Games\SFR V1.9\pawno\Nuova cartella\mycar.pwn(27) : error 017: undefined symbol "GetPlayerVehicleID"

C:\Games\SFR V1.9\pawno\Nuova cartella\mycar.pwn(30) : error 017: undefined symbol "strcmp"

C:\Games\SFR V1.9\pawno\Nuova cartella\mycar.pwn(32) : error 017: undefined symbol "RemovePlayerFromVehicle"

C:\Games\SFR V1.9\pawno\Nuova cartella\mycar.pwn(33) : error 017: undefined symbol "SendClientMessage"

C:\Games\SFR V1.9\pawno\Nuova cartella\mycar.pwn(39) : error 030: compound statement not closed at the end of file (started at line 11)

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

10 Errors.

:D

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.