SA-MP Forums Archive
Removebulding error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Removebulding error (/showthread.php?tid=351850)



Removebulding error - Cowling - 17.06.2012

Hello, I tried to add a map and I got serval of errors!

On all RemoveBuildingForPlayer got I an error on, how can I fix that? Here is the error.

Код:
C:\Users\Administrator\Desktop\Server\gamemodes\larp.pwn(22465) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\Server\gamemodes\larp.pwn(22466) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\Server\gamemodes\larp.pwn(22467) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\Server\gamemodes\larp.pwn(22468) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\Server\gamemodes\larp.pwn(22469) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\Server\gamemodes\larp.pwn(22470) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\Server\gamemodes\larp.pwn(22471) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\Server\gamemodes\larp.pwn(22472) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\Server\gamemodes\larp.pwn(22473) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\Server\gamemodes\larp.pwn(22474) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\Server\gamemodes\larp.pwn(22475) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\Server\gamemodes\larp.pwn(22476) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\Server\gamemodes\larp.pwn(22477) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\Server\gamemodes\larp.pwn(22478) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\Server\gamemodes\larp.pwn(22479) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\Server\gamemodes\larp.pwn(22480) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\Server\gamemodes\larp.pwn(22481) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\Server\gamemodes\larp.pwn(22482) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\Server\gamemodes\larp.pwn(22483) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\Server\gamemodes\larp.pwn(22484) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\Server\gamemodes\larp.pwn(22485) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\Server\gamemodes\larp.pwn(22486) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\Server\gamemodes\larp.pwn(22487) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\Server\gamemodes\larp.pwn(22488) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\Server\gamemodes\larp.pwn(22489) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\Server\gamemodes\larp.pwn(22490) : error 017: undefined symbol "playerid"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Example on the code I have added:
Код:
RemoveBuildingForPlayer(playerid, 1283, 1528.9531, -1605.8594, 15.6250, 0.25);



Re: Removebulding error - Kindred - 17.06.2012

Wherever you have this placed under, doesn't have the parameter playerid. Pretty self explanatory.

Place this under OnPlayerConnect, so that when the player connect, it is removed. Like so:

pawn Код:
public OnPlayerConnect(playerid)
{
    RemoveBuildingForPlayer(playerid, 1283, 1528.9531, -1605.8594, 15.6250, 0.25);
    //Rest of codes
    return 1;
}



Re: Removebulding error - Cowling - 17.06.2012

Quote:
Originally Posted by Kindred
Посмотреть сообщение
Wherever you have this placed under, doesn't have the parameter playerid. Pretty self explanatory.

Place this under OnPlayerConnect, so that when the player connect, it is removed. Like so:

pawn Код:
public OnPlayerConnect(playerid)
{
    RemoveBuildingForPlayer(playerid, 1283, 1528.9531, -1605.8594, 15.6250, 0.25);
    //Rest of codes
    return 1;
}
Got many warnings and one error then..

C:\Users\Administrator\Desktop\Server\gamemodes\la rp.pwn(5545) : warning 217: loose indentation
C:\Users\Administrator\Desktop\Server\gamemodes\la rp.pwn(5545) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Desktop\Server\gamemodes\la rp.pwn(5657) : warning 225: unreachable code
C:\Users\Administrator\Desktop\Server\gamemodes\la rp.pwn(5657) : warning 217: loose indentation
C:\Users\Administrator\Desktop\Server\gamemodes\la rp.pwn(29276) : warning 219: local variable "idcar" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.


Re: Removebulding error - Cowling - 17.06.2012

I have much other codes under OnPlayerConnect, so if I do that you say the pwn program crashing.


Re: Removebulding error - Cowling - 17.06.2012

Fixed, thanks rep+ for you!