Jump to content

Cum sa adaugi un vehicul pe nume !!


Sice15

Recommended Posts

  • 4 months later...

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;
}

Link to comment
Share on other sites

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;
}

Link to comment
Share on other sites

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;
}

Link to comment
Share on other sites

  • 2 years later...

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.