[HELP]ERROR RemoveBuildingForPlayer
#1

I have error on RemoveBuildingForPlayer

Код:
C:\Documents and Settings\Administrator\Desktop\GCRP 0.3d 9-1-2012 by azez\filterscripts\map.pwn(1634) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Administrator\Desktop\GCRP 0.3d 9-1-2012 by azez\filterscripts\map.pwn(1635) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Administrator\Desktop\GCRP 0.3d 9-1-2012 by azez\filterscripts\map.pwn(1636) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Administrator\Desktop\GCRP 0.3d 9-1-2012 by azez\filterscripts\map.pwn(1637) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
The line error

pawn Код:
public OnPlayerConnect(playerid)
{
    RemoveBuildingForPlayer(playerid, 4055, 1394.3594, -1620.6641, 32.1484, 0.25);
    RemoveBuildingForPlayer(playerid, 4220, 1370.6406, -1643.4453, 33.1797, 0.25);
    RemoveBuildingForPlayer(playerid, 647, 1382.0469, -1621.8672, 14.4844, 0.25);
    RemoveBuildingForPlayer(playerid, 4006, 1394.3594, -1620.6641, 32.1484, 0.25);
   
    return 1;
}

How to fix it ? helpme
Reply
#2

go to www.sa-mp.com and download the script files and replace those includes with yours
Reply
#3

There was another problem

I had seen some objectnya already disappeared because RemoveBuildingForPlayer, and after I relog, why objectnya in remove return to the original?
Reply
#4

help please
Reply
#5

Try it like this :
pawn Код:
public OnGameModeInit() //or if its filterscript// public OnFilterScriptInit()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    RemoveBuildingForPlayer(i, 4055, 1394.3594, -1620.6641, 32.1484, 0.25);
    RemoveBuildingForPlayer(i, 4220, 1370.6406, -1643.4453, 33.1797, 0.25);
    RemoveBuildingForPlayer(i, 647, 1382.0469, -1621.8672, 14.4844, 0.25);
    RemoveBuildingForPlayer(i, 4006, 1394.3594, -1620.6641, 32.1484, 0.25);
    }
    return 1;
}
Also update your includes for 0.3d and recompline ...
Reply
#6

what if I relog, the building re-emerged as before? is not lost?
I use /rcon loadfs, then after I relog .. object was not returned RemoveBuilding
please help me

Also update your includes for 0.3d and recompline ...[/QUOTE]
Reply
#7

Then paste the code in your gamemode
Reply
#8

Quote:
Originally Posted by [BG]Gamer
Посмотреть сообщение
Try it like this :
pawn Код:
public OnGameModeInit() //or if its filterscript// public OnFilterScriptInit()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    RemoveBuildingForPlayer(i, 4055, 1394.3594, -1620.6641, 32.1484, 0.25);
    RemoveBuildingForPlayer(i, 4220, 1370.6406, -1643.4453, 33.1797, 0.25);
    RemoveBuildingForPlayer(i, 647, 1382.0469, -1621.8672, 14.4844, 0.25);
    RemoveBuildingForPlayer(i, 4006, 1394.3594, -1620.6641, 32.1484, 0.25);
    }
    return 1;
}
Also update your includes for 0.3d and recompline ...
OnGameModeInit? You serious? No players are going to be in the game OnGameModeInit!
I cannot help with the issue, but OnPlayerConnect is definitely the place to do this.
Reply
#9

Quote:
Originally Posted by MR,Mr
Посмотреть сообщение
OnGameModeInit? You serious? No players are going to be in the game OnGameModeInit!
I cannot help with the issue, but OnPlayerConnect is definitely the place to do this.
no no no bro.. this it clear .. i dont have bug again .. i Put RemoveBuilding OnGameModeInit()
i using [Include] RemoveBuilding its fixed.. thanks to you all for helping me
Reply
#10

Quote:
Originally Posted by Kazuo
Посмотреть сообщение
no no no bro.. this it clear .. i dont have bug again .. i Put RemoveBuilding OnGameModeInit()
i using [Include] RemoveBuilding its fixed.. thanks to you all for helping me
This is exactly the reason I made this include! I'm glad it helped.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)