compile error?
#1

Код:
C:\Documents and Settings\Abraham2\Desktop\My Servers\C_VS_C\filterscripts\ACCIDENT.pwn(59) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Abraham2\Desktop\My Servers\C_VS_C\filterscripts\ACCIDENT.pwn(60) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Abraham2\Desktop\My Servers\C_VS_C\filterscripts\ACCIDENT.pwn(61) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Abraham2\Desktop\My Servers\C_VS_C\filterscripts\ACCIDENT.pwn(62) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Abraham2\Desktop\My Servers\C_VS_C\filterscripts\ACCIDENT.pwn(63) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Abraham2\Desktop\My Servers\C_VS_C\filterscripts\ACCIDENT.pwn(64) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Abraham2\Desktop\My Servers\C_VS_C\filterscripts\ACCIDENT.pwn(65) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Abraham2\Desktop\My Servers\C_VS_C\filterscripts\ACCIDENT.pwn(66) : error 017: undefined symbol "AddstaticVehicleEx"
C:\Documents and Settings\Abraham2\Desktop\My Servers\C_VS_C\filterscripts\ACCIDENT.pwn(67) : error 017: undefined symbol "AddstaticVehicleEx"
C:\Documents and Settings\Abraham2\Desktop\My Servers\C_VS_C\filterscripts\ACCIDENT.pwn(69) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
I get that when compiling.

FILTERSCRIPT:
pawn Код:
#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
    {
    CreateObject(blabla, -1559.1979980469, 718.99755859375, 6.3572425842285, 0, 0, 0);
    CreateObject(blabla, -1548.1947021484, 718.97869873047, 6.3572425842285, 0, 0, 0);
    CreateObject(blabla, -1555.4808349609, 719.07507324219, 6.3572425842285, 0, 0, 0);
    CreateObject(blabla, -1551.9794921875, 718.98303222656, 6.3572425842285, 0, 0, 0);
    CreateObject(blabla, -1544.5849609375, 719.03771972656, 6.3572425842285, 0, 0, 0);
    CreateObject(blabla, -1540.3286132813, 719.06634521484, 6.3572425842285, 0, 0, 0);
    CreateObject(blabla, -1545.1076660156, 717.04876708984, 6.0390625, 0, 0, 0);
    CreateObject(bla, -1557.9086914063, 713.54162597656, 6.4601902961731, 0, 0, 270);
    CreateObject(bla, -1554.0465087891, 713.58197021484, 6.4601902961731, 0, 0, 90);
    CreateObject(bla, -1549.9675292969, 713.466796875, 6.467987537384, 0, 0, 270);
    CreateObject(bla, -1555.8784179688, 713.60406494141, 6.0390625, 0, 0, 0);
    CreateObject(bla, -1551.7446289063, 713.58880615234, 6.0390625, 0, 0, 0);
    CreateObject(bla, -1567.1784667969, 706.07794189453, 6.6399970054626, 0, 0, 90);
    CreateObject(bla, -1557.7700195313, 710.50567626953, 6.5862064361572, 0, 0, 0);
    CreateObject(bla, -1553.537109375, 710.38201904297, 6.5862064361572, 0, 0, 0);
    CreateObject(bla, -1556.0981445313, 708.63018798828, 6.5862064361572, 0, 0, 0);
    CreateObject(bla, -1559.1396484375, 713.54614257813, 6.3572425842285, 0, 0, 0);
    CreateObject(bla, -1559.1658935547, 710.00189208984, 6.3572425842285, 0, 0, 0);
    CreateObject(bla, -1559.1673583984, 706.79254150391, 6.3572425842285, 0, 0, 0);
    CreateObject(bla, -1559.2111816406, 723.55737304688, 6.3572425842285, 0, 0, 0);
    CreateObject(ba, -1559.2757568359, 727.17077636719, 6.350248336792, 0, 0, 0);
    CreateObject(bla, -1559.3615722656, 730.10003662109, 6.350248336792, 0, 0, 0);
    CreateObject(bla, -1556.4982910156, 732.95739746094, 6.3572425842285, 0, 0, 0);
    CreateObject(bla, -1551.7847900391, 735.02429199219, 6.3572425842285, 0, 0, 0);
    CreateObject(bla, -1553.9130859375, 733.80340576172, 6.3572425842285, 0, 0, 0);
    CreateObject(bla, -1558.6123046875, 732.02947998047, 6.3572425842285, 0, 0, 0);
    CreateObject(bla, -1549.3295898438, 737.06951904297, 6.3572425842285, 0, 0, 0);
    CreateObject(bla, -1546.4116210938, 738.80029296875, 6.3572425842285, 0, 0, 0);
    CreateObject(BLA, -1542.587890625, 738.96447753906, 6.3572425842285, 0, 0, 0);
    CreateObject(bla, -1536.9387207031, 738.76629638672, 6.3572425842285, 0, 0, 0);
    CreateObject(bla, -1560.0402832031, 728.90289306641, 6.4425992965698, 0, 0, 270);
    CreateObject(bla, -1559.9713134766, 725.55981445313, 6.4425992965698, 0, 0, 274);
    CreateObject(bla, -1557.767578125, 702.033203125, 5.8947153091431, 0, 0, 0);
    CreateObject(bla, -1559.0500488281, 698.50891113281, 6.7878179550171, 0, 0, 290);
    CreateObject(bla, -1556.0827636719, 690.09838867188, 6.7878179550171, 0, 0, 289.9951171875);
    CreateObject(vla, -1559.1721191406, 702.90014648438, 6.3572425842285, 0, 0, 0);
    CreateObject(bla, -1559.1950683594, 698.3798828125, 6.3572425842285, 0, 0, 0);
    CreateObject(bla, -1558.5134277344, 695.39086914063, 6.3572425842285, 0, 0, 0);
    CreateObject(bla, -1557.2442626953, 691.96807861328, 6.3572425842285, 0, 0, 0);
    CreateObject(bla, -1555.9466552734, 688.50653076172, 6.3572425842285, 0, 0, 0);
    CreateObject(bla, -1555.0133056641, 685.84436035156, 6.3572425842285, 0, 0, 0);
    CreateObject(bla, -1553.9611816406, 683.06994628906, 6.3572425842285, 0, 0, 0);
    CreateObject(vla, -1552.5411376953, 680.80242919922, 6.3572425842285, 0, 0, 0);
    CreateObject(bla, -1558.4805908203, 733.14685058594, 6.4495935440063, 0, 0, 212);
    CreateObject(bla, -1554.8754882813, 734.38262939453, 6.4495935440063, 0, 0, 201.9951171875);
    CreateObject(bla, -1551.2880859375, 736.97216796875, 6.4495935440063, 0, 0, 217.99462890625);
    CreateObject(bla, -1548.1407470703, 739.23229980469, 6.4495935440063, 0, 0, 205.99072265625);
    CreateObject(bla, -1544.3092041016, 740.33673095703, 6.4425992965698, 0, 0, 185.98815917969);
    CreateObject(bla, -1539.7054443359, 741.08020019531, 6.4495935440063, 0, 0, 181.98754882813);

    AddStaticVehicleEx(582, -1543, 706, 8, 0,0, 0); //News van
    AddStaticVehicleEx(416, -1540, 715, 8, 0, 0, 0); //Ambulance
    AddStaticVehicleEx(597, -1541, 721, 7, 0, 0, 0); //Cop 1
    AddStaticVehicleEx(597, -1548, 721, 7, 0, 0, 0); //Cop 2
    AddStaticVehicleEx(597, -1556, 722, 7, 0, 0, 0); //Cop 3
    AddStaticVehicleEx(415, -1551, 727, 7, 0, 0, 0); //Cheetah
    AddStaticVehicleEx(402, -1548, 727, 7, 0, 0, 0); //Victon
    AddstaticVehicleEx(552, -1538, 729, 8, 0, 0, 0); //Ute
    AddstaticVehicleEx(544, -1546, 731, 8, 0, 0, 0); //Truck
    }
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else

#endif
bla=OBject ID (Sorry its my [MAP RELEASE CANT LET IT GO YET )
Reply
#2

just delete:
pawn Код:
#define FILTERSCRIPT
#if defined FILTERSCRIPT
#else

#endif
Reply
#3

Quote:
Originally Posted by Mean
Посмотреть сообщение
just delete:
pawn Код:
#define FILTERSCRIPT
#if defined FILTERSCRIPT
#else

#endif
But its a filterscript
Reply
#4

} <<<< delete
return 1;
}
Reply
#5

I still got unIdentified Symbol error
Reply
#6

okay i fixed errors only warnings:
Код:
C:\Documents and Settings\Abraham2\Desktop\My Servers\C_VS_C\filterscripts\ACCIDENT.pwn(61) : warning 215: expression has no effect
C:\Documents and Settings\Abraham2\Desktop\My Servers\C_VS_C\filterscripts\ACCIDENT.pwn(62) : warning 215: expression has no effect
C:\Documents and Settings\Abraham2\Desktop\My Servers\C_VS_C\filterscripts\ACCIDENT.pwn(63) : warning 215: expression has no effect
C:\Documents and Settings\Abraham2\Desktop\My Servers\C_VS_C\filterscripts\ACCIDENT.pwn(64) : warning 215: expression has no effect
C:\Documents and Settings\Abraham2\Desktop\My Servers\C_VS_C\filterscripts\ACCIDENT.pwn(65) : warning 215: expression has no effect
C:\Documents and Settings\Abraham2\Desktop\My Servers\C_VS_C\filterscripts\ACCIDENT.pwn(66) : warning 215: expression has no effect
C:\Documents and Settings\Abraham2\Desktop\My Servers\C_VS_C\filterscripts\ACCIDENT.pwn(67) : warning 215: expression has no effect
C:\Documents and Settings\Abraham2\Desktop\My Servers\C_VS_C\filterscripts\ACCIDENT.pwn(68) : warning 215: expression has no effect
C:\Documents and Settings\Abraham2\Desktop\My Servers\C_VS_C\filterscripts\ACCIDENT.pwn(69) : warning 215: expression has no effect
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


9 Warnings.
Reply
#7

You are missing a parameter in your AddStaticVehicleEx calls:

pawn Код:
AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2, respawn_delay)
If you do not care about using a custom respawn delay, then perhaps you would like to use the more basic function:

pawn Код:
AddStaticVehicle(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2)
Reply
#8

okay i got it
i use this one
pawn Код:
AddStaticVehicle(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2)
no errors thx..
gonna test..
Reply
#9

You can delete #define FILTERSCRIPT
and thoose defines because you aren't using main().
Reply
#10

Quote:
Originally Posted by Mean
Посмотреть сообщение
You can delete #define FILTERSCRIPT
and thoose defines because you aren't using main().
Look at the last post's date, you are bumping the topic, plus it's most likely solved.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)