Whats Wrong With This
#1

Код:
#include <a_samp>

public OnFilterScriptInit(playerid)
{

RemoveBuildingForPlayer(playerid, 3345, 400.1172, 2543.5703, 15.4844, 0.25);
RemoveBuildingForPlayer(playerid, 3367, 149.9141, 2614.6172, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3368, 161.7891, 2411.3828, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3369, 123.0469, 2587.7422, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3368, 311.1328, 2614.6172, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3368, 176.7891, 2587.7422, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3368, 338.0078, 2587.7422, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3368, 323.0078, 2411.3828, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3369, 203.6563, 2614.6172, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3369, 230.5234, 2641.4844, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3369, 349.8750, 2438.2500, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3369, 269.2656, 2411.3828, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3369, 242.3984, 2438.2500, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3369, 188.6563, 2438.2500, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3369, 108.0469, 2411.3828, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3367, 176.7891, 2641.4844, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3367, 230.5234, 2587.7422, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3367, 257.3984, 2614.6172, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3367, 284.2656, 2641.4844, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3367, 284.2656, 2587.7422, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3367, 296.1406, 2438.2500, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3367, 215.5313, 2411.3828, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3367, 134.9141, 2438.2500, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 16594, -25.2109, 2338.7813, 27.5078, 0.25);
RemoveBuildingForPlayer(playerid, 16595, 419.3750, 2538.5000, 15.5391, 0.25);
RemoveBuildingForPlayer(playerid, 16596, 412.8281, 2542.8672, 15.5391, 0.25);
RemoveBuildingForPlayer(playerid, 16597, 437.3828, 2547.5156, 15.1484, 0.25);
RemoveBuildingForPlayer(playerid, 16598, 231.2813, 2545.7969, 20.0234, 0.25);
RemoveBuildingForPlayer(playerid, 3296, 255.9844, 2549.3281, 20.2031, 0.25);
RemoveBuildingForPlayer(playerid, 3295, 392.7109, 2596.4531, 17.6328, 0.25);
RemoveBuildingForPlayer(playerid, 3296, 376.2969, 2606.3438, 20.1719, 0.25);
RemoveBuildingForPlayer(playerid, 3295, 390.8203, 2604.0703, 20.0234, 0.25);
RemoveBuildingForPlayer(playerid, 3295, 389.1328, 2611.0625, 20.1719, 0.25);
RemoveBuildingForPlayer(playerid, 3295, 382.1875, 2609.4766, 19.8203, 0.25);
RemoveBuildingForPlayer(playerid, 16600, 435.6250, 2532.0859, 20.1797, 0.25);
RemoveBuildingForPlayer(playerid, 16602, 307.9531, 2543.4531, 20.3984, 0.25);
RemoveBuildingForPlayer(playerid, 16707, 302.2188, 2693.5703, 19.2188, 0.25);
RemoveBuildingForPlayer(playerid, 3269, 108.0469, 2411.3828, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3270, 161.7891, 2411.3828, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3364, 77.3203, 2456.2500, 15.2813, 0.25);
RemoveBuildingForPlayer(playerid, 3269, 188.6563, 2438.2500, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3271, 134.9141, 2438.2500, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3271, 215.5313, 2411.3828, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3269, 242.3984, 2438.2500, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3287, 255.9844, 2549.3281, 20.2031, 0.25);
RemoveBuildingForPlayer(playerid, 16599, 231.2813, 2545.7969, 20.0234, 0.25);
RemoveBuildingForPlayer(playerid, 3269, 269.2656, 2411.3828, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 1308, 278.1484, 2555.1875, 15.7969, 0.25);
RemoveBuildingForPlayer(playerid, 16098, 307.9531, 2543.4531, 20.3984, 0.25);
RemoveBuildingForPlayer(playerid, 3271, 296.1406, 2438.2500, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 1308, 78.1797, 2571.0703, 15.6875, 0.25);
RemoveBuildingForPlayer(playerid, 1308, 158.3125, 2571.6563, 15.4688, 0.25);
RemoveBuildingForPlayer(playerid, 1308, 200.3594, 2571.9219, 15.5781, 0.25);
RemoveBuildingForPlayer(playerid, 16373, 160.2031, 2571.9688, 27.3047, 0.25);
RemoveBuildingForPlayer(playerid, 1308, 117.4531, 2572.7813, 15.5469, 0.25);
RemoveBuildingForPlayer(playerid, 1308, 244.5938, 2573.1328, 15.3984, 0.25);
RemoveBuildingForPlayer(playerid, 3269, 123.0469, 2587.7422, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3270, 176.7891, 2587.7422, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3271, 230.5234, 2587.7422, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3271, 284.2656, 2587.7422, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3271, 149.9141, 2614.6172, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3271, 176.7891, 2641.4844, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3269, 230.5234, 2641.4844, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3269, 203.6563, 2614.6172, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3271, 257.3984, 2614.6172, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3271, 284.2656, 2641.4844, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 16675, 302.2188, 2693.5703, 19.2188, 0.25);
RemoveBuildingForPlayer(playerid, 3270, 323.0078, 2411.3828, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 16101, 321.6719, 2463.4922, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 16368, 321.6719, 2463.4922, 25.6641, 0.25);
RemoveBuildingForPlayer(playerid, 3269, 349.8750, 2438.2500, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 864, 352.7734, 2444.4063, 15.8828, 0.25);
RemoveBuildingForPlayer(playerid, 864, 346.8984, 2435.5547, 16.2266, 0.25);
RemoveBuildingForPlayer(playerid, 864, 345.2422, 2432.1328, 16.0391, 0.25);
RemoveBuildingForPlayer(playerid, 864, 346.4141, 2445.2969, 15.9922, 0.25);
RemoveBuildingForPlayer(playerid, 864, 357.5938, 2449.6172, 15.6406, 0.25);
RemoveBuildingForPlayer(playerid, 864, 364.2266, 2450.7578, 15.5469, 0.25);
RemoveBuildingForPlayer(playerid, 1224, 316.3672, 2531.6094, 16.1563, 0.25);
RemoveBuildingForPlayer(playerid, 1224, 316.1641, 2534.6484, 16.1563, 0.25);
RemoveBuildingForPlayer(playerid, 1224, 316.2656, 2533.0781, 16.1563, 0.25);
RemoveBuildingForPlayer(playerid, 1308, 316.3984, 2570.3672, 15.3047, 0.25);
RemoveBuildingForPlayer(playerid, 1224, 316.3516, 2545.1406, 16.1563, 0.25);
RemoveBuildingForPlayer(playerid, 1224, 315.5625, 2551.6250, 16.1563, 0.25);
RemoveBuildingForPlayer(playerid, 1224, 315.6641, 2550.0625, 16.1563, 0.25);
RemoveBuildingForPlayer(playerid, 1308, 361.3750, 2571.8125, 15.4063, 0.25);
RemoveBuildingForPlayer(playerid, 3270, 338.0078, 2587.7422, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3270, 311.1328, 2614.6172, 15.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3287, 376.2969, 2606.3438, 20.1719, 0.25);
RemoveBuildingForPlayer(playerid, 3286, 382.1875, 2609.4766, 19.8203, 0.25);
RemoveBuildingForPlayer(playerid, 1224, 410.8281, 2528.5703, 16.1563, 0.25);
RemoveBuildingForPlayer(playerid, 1224, 409.8047, 2529.6328, 16.1563, 0.25);
RemoveBuildingForPlayer(playerid, 1224, 408.7188, 2530.7656, 16.1563, 0.25);
RemoveBuildingForPlayer(playerid, 1224, 407.1563, 2530.4688, 16.1563, 0.25);
RemoveBuildingForPlayer(playerid, 3172, 400.1172, 2543.5703, 15.4844, 0.25);
RemoveBuildingForPlayer(playerid, 1224, 407.8828, 2532.0078, 16.1563, 0.25);
RemoveBuildingForPlayer(playerid, 1308, 405.3594, 2563.0859, 15.6250, 0.25);
RemoveBuildingForPlayer(playerid, 16370, 385.3438, 2598.6250, 17.0156, 0.25);
RemoveBuildingForPlayer(playerid, 3286, 390.8203, 2604.0703, 20.0234, 0.25);
RemoveBuildingForPlayer(playerid, 3286, 392.7109, 2596.4531, 17.6328, 0.25);
RemoveBuildingForPlayer(playerid, 3286, 389.1328, 2611.0625, 20.1719, 0.25);
RemoveBuildingForPlayer(playerid, 16326, 419.3750, 2538.5000, 15.5391, 0.25);
RemoveBuildingForPlayer(playerid, 16377, 416.1875, 2533.8281, 19.1328, 0.25);
RemoveBuildingForPlayer(playerid, 16378, 414.4063, 2536.5469, 18.8984, 0.25);
RemoveBuildingForPlayer(playerid, 2074, 419.3281, 2538.5391, 12.5234, 0.25);
RemoveBuildingForPlayer(playerid, 16408, 418.2266, 2538.8516, 11.4297, 0.25);
RemoveBuildingForPlayer(playerid, 1810, 418.7344, 2538.7578, 8.9844, 0.25);
RemoveBuildingForPlayer(playerid, 16327, 412.8281, 2542.8672, 15.5391, 0.25);
RemoveBuildingForPlayer(playerid, 16407, 419.3828, 2540.5078, 9.3906, 0.25);
RemoveBuildingForPlayer(playerid, 1748, 418.2734, 2541.0625, 9.7891, 0.25);
RemoveBuildingForPlayer(playerid, 1810, 417.6328, 2542.5000, 8.9844, 0.25);
RemoveBuildingForPlayer(playerid, 1812, 416.2422, 2540.3359, 8.9766, 0.25);
RemoveBuildingForPlayer(playerid, 2115, 418.6875, 2539.5938, 8.9922, 0.25);
RemoveBuildingForPlayer(playerid, 1810, 418.2031, 2539.9063, 8.9844, 0.25);
RemoveBuildingForPlayer(playerid, 1738, 420.1328, 2542.8750, 9.6328, 0.25);
RemoveBuildingForPlayer(playerid, 16374, 425.4688, 2531.0000, 22.5547, 0.25);
RemoveBuildingForPlayer(playerid, 16790, 425.4688, 2531.0000, 22.5547, 0.25);
RemoveBuildingForPlayer(playerid, 1498, 422.8281, 2535.7344, 15.1406, 0.25);
RemoveBuildingForPlayer(playerid, 1498, 423.0234, 2535.7344, 8.9844, 0.25);
RemoveBuildingForPlayer(playerid, 1763, 421.0781, 2540.8125, 8.9844, 0.25);
RemoveBuildingForPlayer(playerid, 16501, 429.9844, 2546.5156, 17.3516, 0.25);
RemoveBuildingForPlayer(playerid, 16409, 437.3828, 2547.5156, 15.1484, 0.25);
RemoveBuildingForPlayer(playerid, 16601, 435.6250, 2532.0859, 20.1797, 0.25);
RemoveBuildingForPlayer(playerid, 16108, -25.2109, 2338.7813, 27.5078, 0.25);
RemoveBuildingForPlayer(playerid, 1308, -1.4844, 2571.7109, 16.5000, 0.25);
RemoveBuildingForPlayer(playerid, 1308, 37.7734, 2570.5625, 15.3047, 0.25);
CreateObject(8355, 364.82, 2502.99, 15.89,   0.00, 0.00, -90.78);
CreateObject(8355, 226.58, 2504.85, 15.89,   0.00, 0.00, -90.78);
CreateObject(8355, 226.58, 2504.85, 15.89,   0.00, 0.00, -90.78);
CreateObject(8355, 226.58, 2504.85, 15.89,   0.00, 0.00, -90.78);
CreateObject(8355, 88.29, 2506.72, 15.89,   0.00, 0.00, -90.78);
CreateObject(7978, 11003.65, -2760.16, -3838.66,   0.00, 0.00, 0.00);
CreateObject(7978, 11003.65, -2760.16, -3838.66,   0.00, 0.00, 0.00);
CreateObject(8355, 364.78, 2502.94, 15.89,   0.00, 0.00, -90.78);
CreateObject(8355, 226.58, 2504.85, 15.89,   0.00, 0.00, -90.78);
CreateObject(8355, 226.58, 2504.85, 15.89,   0.00, 0.00, -90.78);
CreateObject(8355, 226.58, 2504.85, 15.89,   0.00, 0.00, -90.78);
CreateObject(8355, 88.29, 2506.72, 15.89,   0.00, 0.00, -90.78);
CreateObject(4832, 99.10, 2575.55, 46.00,   0.00, 0.00, 0.00);
CreateObject(7978, 11003.65, -2760.16, -3838.66,   0.00, 0.00, 0.00);
CreateObject(7978, 11003.65, -2760.16, -3838.66,   0.00, 0.00, 0.00);
CreateObject(10755, 217.94, 2399.24, 24.13,   0.00, 0.00, 47.00);
CreateObject(7996, 258.38, 2595.02, 13.88,   0.00, 0.00, 0.00);
CreateObject(4874, 344.97, 2570.77, 18.92,   0.00, 0.00, -88.80);
CreateObject(4874, 431.80, 2532.26, 18.92,   0.00, 0.00, -86.16);
CreateObject(4874, 319.98, 2621.63, 18.92,   0.00, 0.00, -0.42);
CreateObject(1682, 225.21, 2643.64, 23.00,   0.00, 0.00, 214.50);
CreateObject(3663, 285.22, 2575.36, 17.94,   0.00, 0.00, 0.00);
CreateObject(3663, 285.06, 2548.82, 17.94,   0.00, 0.00, 0.00);
CreateObject(7996, 241.91, 2420.03, 13.88,   0.00, 0.00, 0.00);
    
}
error 025: function heading differs from prototype
Reply
#2

Maybe add
pawn Код:
return 1;
Reply
#3

You make me laugh! You can't just add playerid in any callback you want!

pawn Код:
OnFilterScriptInit()
... is the only thing it can be unless you change the a_samp.inc file!

Therefore, all of your "RemoveBuildingForPlayer" lines needs to be moved to OnPlayerConnect().

Then remove "playerid" from our "OnFilterScriptInit" line!
Reply
#4

Quote:
Originally Posted by Trucido
Посмотреть сообщение
Maybe add
pawn Код:
return 1;
Fail...
Reply
#5

Quote:
Originally Posted by Steven82
Посмотреть сообщение
Fail...
Fail? I don't really care. I'm not pro.. yet.
Reply
#6

Quote:
Originally Posted by Trucido
Посмотреть сообщение
Fail? I don't really care. I'm not pro.. yet.
You're going to be a professional? NO WAY!

Listen bud, nobody here is a professional, not even Kalcor himself! You'll learn that as you go...
Reply
#7

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
You're going to be a professional? NO WAY!

Listen bud, nobody here is a professional, not even Kalcor himself! You'll learn that as you go...
Okay.. I meant being good at pawn, not anything else..
Reply
#8

Try moving all RemoveBuildingForPlayer lines under OnPlayerConnect.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)