RemovePlayerObject errors
#1

Guys, can anyone help me? i add one map in my FS but it have RemovePlayerObject and when i try to compile give me that errors
Код:
C:\Documents and Settings\dd\Desktop\truck server\PPC_Trucking\filterscripts\SFA.pwn(283) : error 017: undefined symbol "RemoveBuildingForPlayer"
C:\Documents and Settings\dd\Desktop\truck server\PPC_Trucking\filterscripts\SFA.pwn(284) : error 017: undefined symbol "RemoveBuildingForPlayer"
C:\Documents and Settings\dd\Desktop\truck server\PPC_Trucking\filterscripts\SFA.pwn(285) : error 017: undefined symbol "RemoveBuildingForPlayer"
C:\Documents and Settings\dd\Desktop\truck server\PPC_Trucking\filterscripts\SFA.pwn(286) : error 017: undefined symbol "RemoveBuildingForPlayer"
C:\Documents and Settings\dd\Desktop\truck server\PPC_Trucking\filterscripts\SFA.pwn(287) : error 017: undefined symbol "RemoveBuildingForPlayer"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Her is what i doing:
Код:
#define FILTERSCRIPT

#include < a_samp >

public OnFilterScriptInit( )
{

    RemoveBuildingForPlayer(playerid, 3459, 2411.7656, 623.4297, 17.2969, 0.25);
    RemoveBuildingForPlayer(playerid, 3459, 2521.8906, 683.5000, 17.3203, 0.25);
    RemoveBuildingForPlayer(playerid, 8596, 2490.4297, 703.1953, 21.9453, 0.25);
    RemoveBuildingForPlayer(playerid, 3459, 2498.5391, 698.8906, 17.3203, 0.25);
    RemoveBuildingForPlayer(playerid, 1294, 2503.2500, 705.6016, 14.3047, 0.25);
    CreateObject(16357, 2982.64, -781.22, 9.91,   0.00, 0.00, 0.00);
    CreateObject(16357, 3141.69, -781.25, 9.93,   0.00, 0.00, 0.00);
    CreateObject(16357, 3301.42, -781.25, 9.93,   0.00, 0.00, 0.00);
    CreateObject(10353, 3068.71, -860.55, 1.01,   0.00, 0.00, 89.96);
    CreateObject(17472, 2957.65, -816.50, 1.08,   0.00, 0.00, 274.48);
    CreateObject(17472, 2957.71, -861.09, 1.23,   0.00, 0.00, 274.48);
    CreateObject(10353, 3281.84, -865.68, 1.01,   0.00, 0.00, 89.96);
    CreateObject(10353, 3065.83, -695.49, 1.01,   0.00, 0.00, 272.04);
    CreateObject(17472, 2956.02, -752.88, 1.08,   0.00, 0.00, 274.48);
    CreateObject(17472, 2950.17, -710.86, 1.08,   0.00, 0.00, 274.48);
    CreateObject(17472, 2946.50, -791.80, 1.08,   0.00, 0.00, 356.87);
    CreateObject(7347, 3204.09, -716.99, -29.05,   0.00, 0.00, 2.57);
    CreateObject(10353, 3287.33, -688.57, 1.01,   0.00, 0.00, 272.04);
    CreateObject(17472, 3175.90, -753.05, 1.08,   0.00, 0.00, 274.48);
    CreateObject(17472, 3197.27, -817.30, 5.92,   0.00, 0.00, 274.48);
    CreateObject(17472, 3177.53, -736.12, 1.08,   0.00, 0.00, 274.48);
    CreateObject(17472, 3171.93, -847.66, 6.31,   0.00, 0.00, 245.00);
Reply
#2

pawn Код:
RemoveBuildingForPlayer(playerid, 3459, 2411.7656, 623.4297, 17.2969, 0.25);
RemoveBuildingForPlayer(playerid, 3459, 2521.8906, 683.5000, 17.3203, 0.25);
RemoveBuildingForPlayer(playerid, 8596, 2490.4297, 703.1953, 21.9453, 0.25);
RemoveBuildingForPlayer(playerid, 3459, 2498.5391, 698.8906, 17.3203, 0.25);
RemoveBuildingForPlayer(playerid, 1294, 2503.2500, 705.6016, 14.3047, 0.25);
Move it to OnPlayerConnect. Can't use it at OnFilterScriptInit because there is no playerid at OnFilterScriptInit or OnGameModeInit.
Reply
#3

what u mean?
Reply
#4

You can't understand that? Damn.

Remove that RemoveBuildingForPlayer from OnFilterScriptInit and add it to OnPlayerConnect.

Is that hard?

https://sampwiki.blast.hk/wiki/RemoveBuildingForPlayer
Reply
#5

Just take all the RemoveBuildingForPlayer under OnPlayerConnect
Reply
#6

srr, i badest scripter in world, give me direct code plz XD
Reply
#7

OMG. Give us your OnPlayerConnect function.
Reply
#8

Quote:
Originally Posted by RedJohn
Посмотреть сообщение
OMG. Give us your OnPlayerConnect function.
how?
Reply
#9

pawn Код:
public OnPlayerConnect(playerid)
{
    RemoveBuildingForPlayer(playerid, 3459, 2411.7656, 623.4297, 17.2969, 0.25);
    RemoveBuildingForPlayer(playerid, 3459, 2521.8906, 683.5000, 17.3203, 0.25);
    RemoveBuildingForPlayer(playerid, 8596, 2490.4297, 703.1953, 21.9453, 0.25);
    RemoveBuildingForPlayer(playerid, 3459, 2498.5391, 698.8906, 17.3203, 0.25);
    RemoveBuildingForPlayer(playerid, 1294, 2503.2500, 705.6016, 14.3047, 0.25);
    return 1;
}
Reply
#10

Код:
C:\Documents and Settings\dd\Desktop\truck server\PPC_Trucking\gamemodes\shit.pwn(187) : error 001: expected token: "#endif", but found "-end of file-"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)