[pomoc]osobna vozila

Započeo Dodo_Shadow
22. Apr. 2012. Zaključano
592
pregleda
13
postova
Dominik_Frankie
4
Enforcer
22. Apr. 2012.
Skripta koju koristim:CLRP
Detaljan opis problema:napravim Fs za osobna vozila(za jedno)i izbaci mi 1 eror a neznam kak ga maknut
Dio skripte:

Quote

#include

new privatecar;

public OnFilterScriptInit()
{
    privatecar = CreateVehicle(470,1766.0599,-1894.9680,13.5602,359.9476,0,0);
return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
new vehicleid = GetPlayerVehicleID(playerid);

if(newstate == PLAYER_STATE_DRIVER)
{
  if(strcmp(GetName(playerid), "Dominik_Buljan",true) == 0)
  {
        if(vehicleid == privatecar)
          {
              return 1;
          }
          else
          {
    RemovePlayerFromVehicle(playerid);
          }
      }
   
  }
  return 1;
}

stock Getname(Playerid)
{
new name(MAX_PLAYER_NAME);
GetPlayerName(playerid, name, sizeof name);
return name;
}
Neke slike/video za lakse dobivanje pomoci(neobavezno):http://www.youtube.com/watch?v=X9Rvj_NufhY&context=C4484fd0ADvjVQa1PpcFOOAVZIwOe_6OKIe2FLOvTHPJ7bt5TW2zg=

   
[WW]ivan
5
Kingpin
22. Apr. 2012.
bolje pogledaj kako si definiso getname a kako si oznacio 😄

stock Getname

a koristis ga GetName

samo stavi veliko N u stock
Dominik_Frankie
4
Enforcer
22. Apr. 2012.
dok stavim malo n izbaci mi 4 erora
Quote
      if(strcmp(Getname(playerid), "Dominik_Buljan",true) == 0)


Quote
C:\Users\Buljan\Desktop\TechLand Xperia\filterscripts\Untitled.pwn(7) : warning 202: number of arguments does not match definition
C:\Users\Buljan\Desktop\TechLand Xperia\filterscripts\Untitled.pwn(17) : error 035: argument type mismatch (argument 1)
C:\Users\Buljan\Desktop\TechLand Xperia\filterscripts\Untitled.pwn(23) : warning 217: loose indentation
C:\Users\Buljan\Desktop\TechLand Xperia\filterscripts\Untitled.pwn(30) : warning 217: loose indentation
C:\Users\Buljan\Desktop\TechLand Xperia\filterscripts\Untitled.pwn(35) : error 001: expected token: ";", but found "("
C:\Users\Buljan\Desktop\TechLand Xperia\filterscripts\Untitled.pwn(35) : warning 215: expression has no effect
C:\Users\Buljan\Desktop\TechLand Xperia\filterscripts\Untitled.pwn(36) : error 017: undefined symbol "playerid"
C:\Users\Buljan\Desktop\TechLand Xperia\filterscripts\Untitled.pwn(36) : error 035: argument type mismatch (argument 2)
C:\Users\Buljan\Desktop\TechLand Xperia\filterscripts\Untitled.pwn(33) : warning 203: symbol is never used: "Playerid"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

4 Errors.
[WW]ivan
5
Kingpin
22. Apr. 2012.
#include 

new privatecar;

public OnFilterScriptInit()
{
    privatecar = CreateVehicle(470,1766.0599,-1894.9680,13.5602,359.9476,0,0);
    return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new vehicleid = GetPlayerVehicleID(playerid);
   
    if(newstate == PLAYER_STATE_DRIVER)
    {
        if(strcmp(GetName(playerid), "Dominik_Buljan",true) == 0)
        {
              if(vehicleid == privatecar)
          {
              return 1;
          }
          else
          {
          RemovePlayerFromVehicle(playerid);
          }
      }
   
  }
  return 1;
}

stock GetName(playerid)
{
    new name(MAX_PLAYER_NAME);
    GetPlayerName(playerid, name, sizeof name);
    return name;
}


aj probaj ovako
Dominik_Frankie
4
Enforcer
22. Apr. 2012.
Quote
C:\Users\Buljan\Desktop\TechLand Xperia\filterscripts\Untitled.pwn(7) : warning 202: number of arguments does not match definition
C:\Users\Buljan\Desktop\TechLand Xperia\filterscripts\Untitled.pwn(😎 : warning 217: loose indentation
C:\Users\Buljan\Desktop\TechLand Xperia\filterscripts\Untitled.pwn(17) : error 035: argument type mismatch (argument 1)
C:\Users\Buljan\Desktop\TechLand Xperia\filterscripts\Untitled.pwn(23) : warning 217: loose indentation
C:\Users\Buljan\Desktop\TechLand Xperia\filterscripts\Untitled.pwn(30) : warning 217: loose indentation
C:\Users\Buljan\Desktop\TechLand Xperia\filterscripts\Untitled.pwn(35) : error 001: expected token: ";", but found "("
C:\Users\Buljan\Desktop\TechLand Xperia\filterscripts\Untitled.pwn(35) : warning 215: expression has no effect
C:\Users\Buljan\Desktop\TechLand Xperia\filterscripts\Untitled.pwn(36) : error 035: argument type mismatch (argument 2)
C:\Users\Buljan\Desktop\TechLand Xperia\filterscripts\Untitled.pwn(36) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

4 Errors.
opet 😢
Dominik_Frankie
4
Enforcer
22. Apr. 2012.
zna neko kak ovo rijesit 😕
Deleted User
Obrisan korisnik
22. Apr. 2012.
Daj citavu FS U codu
Dominik_Frankie
4
Enforcer
22. Apr. 2012.
Quote
#include

new privatecar;

public OnFilterScriptInit()
{
    privatecar = CreateVehicle(470,1766.0599,-1894.9680,13.5602,359.9476,0,0);
    return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new vehicleid = GetPlayerVehicleID(playerid);

    if(newstate == PLAYER_STATE_DRIVER)
    {
        if(strcmp(GetName(playerid), "Dominik_Buljan",true) == 0)
        {
              if(vehicleid == privatecar)
          {
              return 1;
          }
          else
          {
          RemovePlayerFromVehicle(playerid);
          }
      }

  }
  return 1;
}

stock GetName(playerid)
{
    new name(MAX_PLAYER_NAME);
    GetPlayerName(playerid, name, sizeof name);
    return name;
}
[WW]ivan
5
Kingpin
22. Apr. 2012.
daj tu liniju di ti baca erore..
Dominik_Frankie
4
Enforcer
22. Apr. 2012.
Quote
C:\Users\Buljan\Desktop\TechLand Xperia\filterscripts\Untitled.pwn(7) : warning 202: number of arguments does not match definition
C:\Users\Buljan\Desktop\TechLand Xperia\filterscripts\Untitled.pwn(😎 : warning 217: loose indentation
C:\Users\Buljan\Desktop\TechLand Xperia\filterscripts\Untitled.pwn(17) : error 035: argument type mismatch (argument 1)
C:\Users\Buljan\Desktop\TechLand Xperia\filterscripts\Untitled.pwn(23) : warning 217: loose indentation
C:\Users\Buljan\Desktop\TechLand Xperia\filterscripts\Untitled.pwn(30) : warning 217: loose indentation
C:\Users\Buljan\Desktop\TechLand Xperia\filterscripts\Untitled.pwn(35) : error 001: expected token: ";", but found "("
C:\Users\Buljan\Desktop\TechLand Xperia\filterscripts\Untitled.pwn(35) : warning 215: expression has no effect
C:\Users\Buljan\Desktop\TechLand Xperia\filterscripts\Untitled.pwn(36) : error 035: argument type mismatch (argument 2)
C:\Users\Buljan\Desktop\TechLand Xperia\filterscripts\Untitled.pwn(36) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

4 Errors.
Dominik_Frankie
4
Enforcer
22. Apr. 2012.
treba jos sta
Deleted User
Obrisan korisnik
22. Apr. 2012.
OVO STAVI ISPOD
#define GetPlayerName
ispod
new privatecar;
Deleted User
Obrisan korisnik
22. Apr. 2012.
EVo 1 error sada
#include 

new privatecar;
#define provatecar
#define GetPlayerName

public OnFilterScriptInit()
{
    privatecar = CreateVehicle(470,1766.0599,-1894.9680,13.5602,359.9476,0,0);
    return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new vehicleid = GetPlayerVehicleID(playerid);

    if(newstate == PLAYER_STATE_DRIVER)
    {
        if(strcmp(GetPlayerName(playerid),"Dominik_Buljan",true) == 0)
        {
              if(vehicleid == privatecar)
          {
              return 1;
          }
          else
          {
          RemovePlayerFromVehicle(playerid);
          }
      }

  }
  return 1;
  }
stock GetName(playerid)
{
    new name(MAX_PLAYER_NAME);
    GetPlayerName(playerid, name, sizeof name);
    return name;
}

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha