Szerző Téma: Ez most miért nem jó?  (Megtekintve 939 alkalommal)

Ez most miért nem jó?
« Dátum: 2011. Március 16. - 17:36:03 »
0 Show voters
Hali! Scream mondta hogy rakjak be így kocsikat (createvehicle) de valamiért nem jó!
Script:
 
#include <a_samp>
new rgckapu[2];
public OnFilterScriptInit()
{
    rgckapu[0] = CreateObject(974, 1945.6026611328, 2218.96484375, 12.598052978516, 0, 0, 90);
    rgckapu[1] = CreateObject(974, 1945.6346435547, 2212.4208984375, 12.598052978516, 0, 0, 90);
    return 1;
public OnGameModeInit()
CreateVehicle(520,1950.4694,2259.7754,23.3920 ,60); //hidra1
    CreateVehicle(520,1958.8214,2260.5164,22.4644 ,60); //hidra2
    CreateVehicle(520,1968.0103,2252.9800,21.4440 ,60); //hidra3
    CreateVehicle(520,1968.0103,2252.9800,21.4440 ,60); //hidra3
    CreateVehicle(469,1956.3850,2234.3669,22.7350 ,60); //sparrow
    CreateVehicle(557,1979.9451,2244.4521,27.1953 ,60); //monster1
    CreateVehicle(557,1979.5883,2257.4688,27.1953 ,60); //monster2
    CreateVehicle(411,1990.4550,2258.7173,26.2377 ,60); //infernus1
    CreateVehicle(411,1996.6157,2260.9409,25.5445 ,60); //infernus2
    CreateVehicle(596,2012.8080,2249.4236,23.9141 ,60); //police
    CreateVehicle(432,2013.0338,2241.2395,23.9141 ,60); //tank
    return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
     if(!strcmp(\"/rgcbazis-zar\", cmdtext, true) )
     {
        MoveObject(rgckapu[0], 1945.5947265625, 2218.9372558594, 12.598052978516, 2.0);
        return 1;
}
     if(!strcmp(\"/rgcbazis-nyit\", cmdtext, true) )
 {
        MoveObject(rgckapu[0], 1945.6346435547, 2212.4208984375, 12.598052978516, 2.0);
        return 1;
}
 return 0;
}

 
HIBAÜZENET:
 
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(15) : warning 225: unreachable code
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(15) : warning 217: loose indentation
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(15) : error 029: invalid expression, assumed zero
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(15) : error 004: function \"OnGameModeInit\" is not implemented
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(17) : error 001: expected token: \";\", but found \"-identifier-\"
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(17) : warning 217: loose indentation
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(17) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(17) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(17) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(18) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(18) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(18) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(19) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(19) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(19) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(20) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(20) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(20) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(21) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(21) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(21) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(22) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(22) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(22) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(23) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(23) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(23) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(24) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(24) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(24) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(25) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(25) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(25) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(26) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(26) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(26) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(27) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(27) : warning 202: number of arguments does not match definition
C:\\Documents and Settings\\felhasználó\\Asztal\\GTA SA SZERVER\\filterscripts\\rgcbazis.pwn(27) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase
3 errors
« Utoljára szerkesztve: 2011. Március 16. - 17:37:54 írta IceMan™ »

Nem elérhető InAceX

  • 501
    • Profil megtekintése
Ez most miért nem jó?
« Válasz #1 Dátum: 2011. Március 16. - 17:41:20 »
0 Show voters
A CreateVehicle-nek kell változó,használj AddStaticVehicle -t nem kell változó és DEBUG segítségével le is tudod õket egybõl menteni és az OnGameModInit() alatt nincs { jel.
« Utoljára szerkesztve: 2011. Március 16. - 18:04:49 írta InAceX »

Nem elérhető Csabesz

  • 7827
    • Profil megtekintése
Ez most miért nem jó?
« Válasz #2 Dátum: 2011. Március 16. - 17:49:09 »
0 Show voters

#include <a_samp>
new rgckapu[2];
public OnFilterScriptInit()
{
    rgckapu[0] = CreateObject(974, 1945.6026611328, 2218.96484375, 12.598052978516, 0, 0, 90);
    rgckapu[1] = CreateObject(974, 1945.6346435547, 2212.4208984375, 12.598052978516, 0, 0, 90);
    CreateVehicle(520,1950.4694,2259.7754,23.3920 ,60); //hidra1
    CreateVehicle(520,1958.8214,2260.5164,22.4644 ,60); //hidra2
    CreateVehicle(520,1968.0103,2252.9800,21.4440 ,60); //hidra3
    CreateVehicle(520,1968.0103,2252.9800,21.4440 ,60); //hidra3
    CreateVehicle(469,1956.3850,2234.3669,22.7350 ,60); //sparrow
    CreateVehicle(557,1979.9451,2244.4521,27.1953 ,60); //monster1
    CreateVehicle(557,1979.5883,2257.4688,27.1953 ,60); //monster2
    CreateVehicle(411,1990.4550,2258.7173,26.2377 ,60); //infernus1
    CreateVehicle(411,1996.6157,2260.9409,25.5445 ,60); //infernus2
    CreateVehicle(596,2012.8080,2249.4236,23.9141 ,60); //police
    CreateVehicle(432,2013.0338,2241.2395,23.9141 ,60); //tank
    return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
     if(!strcmp(\"/rgcbazis-zar\", cmdtext, true) )
     {
        MoveObject(rgckapu[0], 1945.5947265625, 2218.9372558594, 12.598052978516, 2.0);
        return 1;
}
     if(!strcmp(\"/rgcbazis-nyit\", cmdtext, true) )
    {
        MoveObject(rgckapu[0], 1945.6346435547, 2212.4208984375, 12.598052978516, 2.0);
        return 1;
}
    return 0;
}

Ez most miért nem jó?
« Válasz #3 Dátum: 2011. Március 16. - 17:57:33 »
0 Show voters
Köszi! De a pawno nem fogadja el ugyanazok a hibák!

Nem elérhető Buba

  • 540
    • Profil megtekintése
Ez most miért nem jó?
« Válasz #4 Dátum: 2011. Március 16. - 17:57:50 »
0 Show voters
#include <a_samp>
new rgckapu1,rgckapu2;
public OnFilterScriptInit()
{
    rgckapu1 = CreateObject(974, 1945.6026611328, 2218.96484375, 12.598052978516, 0, 0, 90);
    rgckapu2 = CreateObject(974, 1945.6346435547, 2212.4208984375, 12.598052978516, 0, 0, 90);
    //Ide rakd majd a kocsikat, amiket SAMP(v.debug) -ban /save val a jó helyen elmentettél, és a savedpositions.txt -bõl kimásoltál ;)
    return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(\"/rgcbazis-zar\", cmdtext, true) )
{
        MoveObject(rgckapu1, 1945.5947265625, 2218.9372558594, 12.598052978516, 2.0);
        return 1;
}
if(!strcmp(\"/rgcbazis-nyit\", cmdtext, true) )
{
        MoveObject(rgckapu2, 1945.6346435547, 2212.4208984375, 12.598052978516, 2.0);
       return 1;
}
return 0;
}

Nem elérhető ►ѕтa

  • 2016
  • Newbie
    • Profil megtekintése
Ez most miért nem jó?
« Válasz #5 Dátum: 2011. Március 16. - 18:23:03 »
0 Show voters

#include <a_samp>
new rgckapu[2];
public OnFilterScriptInit()
{
    rgckapu[0] = CreateObject(974, 1945.6026611328, 2218.96484375, 12.598052978516, 0, 0, 90);
    rgckapu[1] = CreateObject(974, 1945.6346435547, 2212.4208984375, 12.598052978516, 0, 0, 90);
    CreateVehicle(520,1950.4694,2259.7754,23.3920, 60, 60, 60, -1); //hidra1
    CreateVehicle(520,1958.8214,2260.5164,22.4644 ,60, 60, 60, -1); //hidra2
    CreateVehicle(520,1968.0103,2252.9800,21.4440, 60, 60, 60, -1); //hidra3
    CreateVehicle(520,1968.0103,2252.9800,21.4440 ,60, 60, 60, -1); //hidra3
    CreateVehicle(469,1956.3850,2234.3669,22.7350 ,60, 60, 60, -1); //sparrow
    CreateVehicle(557,1979.9451,2244.4521,27.1953 ,60, 60, 60, -1); //monster1
    CreateVehicle(557,1979.5883,2257.4688,27.1953 ,60, 60, 60, -1); //monster2
    CreateVehicle(411,1990.4550,2258.7173,26.2377 ,60, 60, 60, -1); //infernus1
    CreateVehicle(411,1996.6157,2260.9409,25.5445 ,60, 60, 60, -1); //infernus2
    CreateVehicle(596,2012.8080,2249.4236,23.9141 ,60, 60, 60, -1); //police
    CreateVehicle(432,2013.0338,2241.2395,23.9141 ,60, 60, 60, -1); //tank
    return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
     if(!strcmp(\"/rgcbazis-zar\", cmdtext, true) )
     {
        MoveObject(rgckapu[0], 1945.5947265625, 2218.9372558594, 12.598052978516, 2.0);
        return 1;
}
     if(!strcmp(\"/rgcbazis-nyit\", cmdtext, true) )
    {
        MoveObject(rgckapu[0], 1945.6346435547, 2212.4208984375, 12.598052978516, 2.0);
        return 1;
}
    return 0;
}

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal