playerid Error.
#1

I'm adding this
Code:
RemoveBuildingForPlayer(playerid, 3321, 2367.3516, 188.5156, 26.9375, 0.25);
	RemoveBuildingForPlayer(playerid, 13461, 2373.2344, 29.1719, 30.3438, 0.25);
	RemoveBuildingForPlayer(playerid, 3319, 2367.3516, 164.8750, 26.9375, 0.25);
	RemoveBuildingForPlayer(playerid, 1410, 2354.1016, 189.9219, 26.2188, 0.25);
	RemoveBuildingForPlayer(playerid, 1408, 2354.0938, 165.9766, 26.0469, 0.25);
	RemoveBuildingForPlayer(playerid, 1408, 2354.0938, 160.5078, 26.0469, 0.25);
	RemoveBuildingForPlayer(playerid, 1408, 2354.0938, 155.0313, 26.0469, 0.25);
	RemoveBuildingForPlayer(playerid, 1408, 2356.8203, 152.3047, 26.3750, 0.25);
	RemoveBuildingForPlayer(playerid, 3407, 2354.2734, 176.9453, 25.4688, 0.25);
	RemoveBuildingForPlayer(playerid, 3408, 2354.0703, 176.0234, 25.4453, 0.25);
	RemoveBuildingForPlayer(playerid, 779, 2358.9453, 191.9297, 26.0547, 0.25);
	RemoveBuildingForPlayer(playerid, 769, 2358.9453, 152.6953, 25.5703, 0.25);
	RemoveBuildingForPlayer(playerid, 3308, 2367.3516, 164.8750, 26.9375, 0.25);
	RemoveBuildingForPlayer(playerid, 3307, 2367.3516, 188.5156, 26.9375, 0.25);
	RemoveBuildingForPlayer(playerid, 1410, 2354.1016, 199.3594, 26.2188, 0.25);
	RemoveBuildingForPlayer(playerid, 1410, 2354.1016, 194.6406, 26.2188, 0.25);
	RemoveBuildingForPlayer(playerid, 727, 2378.9531, 194.0234, 26.3359, 0.25);
When I add this in my script I see this.

Code:
(23433) : error 017: undefined symbol "playerid"
(23433) : warning 215: expression has no effect
On every RemoveBuildingForPlayer

Anyone can help me? Please.
Reply
#2

I had the same problem.Try to remove playerid.That worked for me.
Reply
#3

use it under a callback which have playerid as a parameter
like OnPlayerConnect
or try makeing a loop and change the playerid to the loop name
Reply
#4

Quote:
Originally Posted by [bot]fatninja
View Post
use it under a callback which have playerid as a parameter
like OnPlayerConnect
or try makeing a loop and change the playerid to the loop name
How can I do that, please help me.

Quote:
Originally Posted by KingJohny
View Post
I had the same problem.Try to remove playerid.That worked for me.
Did that and now I get this.

Code:
(23433) : warning 215: expression has no effect
Reply
#5

add all that codes under OnPlayerConnect because OnGameModeInit/OnFilterScriptInit does not have any parameter.
Reply
#6

You had that warning before.I don't know what to do about that.Sorry.
Reply
#7

Quote:
Originally Posted by XStormiest
View Post
add all that codes under OnPlayerConnect because OnGameModeInit/OnFilterScriptInit does not have any parameter.
I did this.
Code:
public OnPlayerConnect(playerid)
	{
	RemoveBuildingForPlayer(3321, 2367.3516, 188.5156, 26.9375, 0.25);
	RemoveBuildingForPlayer(13461, 2373.2344, 29.1719, 30.3438, 0.25);
	RemoveBuildingForPlayer(3319, 2367.3516, 164.8750, 26.9375, 0.25);
	RemoveBuildingForPlayer(1410, 2354.1016, 189.9219, 26.2188, 0.25);
	RemoveBuildingForPlayer(1408, 2354.0938, 165.9766, 26.0469, 0.25);
	RemoveBuildingForPlayer(1408, 2354.0938, 160.5078, 26.0469, 0.25);
	RemoveBuildingForPlayer(1408, 2354.0938, 155.0313, 26.0469, 0.25);
	RemoveBuildingForPlayer(1408, 2356.8203, 152.3047, 26.3750, 0.25);
	RemoveBuildingForPlayer(3407, 2354.2734, 176.9453, 25.4688, 0.25);
	RemoveBuildingForPlayer(3408, 2354.0703, 176.0234, 25.4453, 0.25);
	RemoveBuildingForPlayer(779, 2358.9453, 191.9297, 26.0547, 0.25);
	RemoveBuildingForPlayer(769, 2358.9453, 152.6953, 25.5703, 0.25);
	RemoveBuildingForPlayer(3308, 2367.3516, 164.8750, 26.9375, 0.25);
	RemoveBuildingForPlayer(3307, 2367.3516, 188.5156, 26.9375, 0.25);
	RemoveBuildingForPlayer(1410, 2354.1016, 199.3594, 26.2188, 0.25);
	RemoveBuildingForPlayer(1410, 2354.1016, 194.6406, 26.2188, 0.25);
	RemoveBuildingForPlayer(727, 2378.9531, 194.0234, 26.3359, 0.25);
		return 1;
	}
Now I get this..
Code:
(23433) : error 029: invalid expression, assumed zero
(23433) : error 017: undefined symbol "playerid"
And still got this on every RemoveBuildingForPlayer rule.
Code:
(23433) : warning 215: expression has no effect
Reply
#8

man do it like
pawn Code:
public OnPlayerConnect(playerid)
    {
RemoveBuildingForPlayer(playerid, 3321, 2367.3516, 188.5156, 26.9375, 0.25);
    RemoveBuildingForPlayer(playerid, 13461, 2373.2344, 29.1719, 30.3438, 0.25);
    RemoveBuildingForPlayer(playerid, 3319, 2367.3516, 164.8750, 26.9375, 0.25);
    RemoveBuildingForPlayer(playerid, 1410, 2354.1016, 189.9219, 26.2188, 0.25);
    RemoveBuildingForPlayer(playerid, 1408, 2354.0938, 165.9766, 26.0469, 0.25);
    RemoveBuildingForPlayer(playerid, 1408, 2354.0938, 160.5078, 26.0469, 0.25);
    RemoveBuildingForPlayer(playerid, 1408, 2354.0938, 155.0313, 26.0469, 0.25);
    RemoveBuildingForPlayer(playerid, 1408, 2356.8203, 152.3047, 26.3750, 0.25);
    RemoveBuildingForPlayer(playerid, 3407, 2354.2734, 176.9453, 25.4688, 0.25);
    RemoveBuildingForPlayer(playerid, 3408, 2354.0703, 176.0234, 25.4453, 0.25);
    RemoveBuildingForPlayer(playerid, 779, 2358.9453, 191.9297, 26.0547, 0.25);
    RemoveBuildingForPlayer(playerid, 769, 2358.9453, 152.6953, 25.5703, 0.25);
    RemoveBuildingForPlayer(playerid, 3308, 2367.3516, 164.8750, 26.9375, 0.25);
    RemoveBuildingForPlayer(playerid, 3307, 2367.3516, 188.5156, 26.9375, 0.25);
    RemoveBuildingForPlayer(playerid, 1410, 2354.1016, 199.3594, 26.2188, 0.25);
    RemoveBuildingForPlayer(playerid, 1410, 2354.1016, 194.6406, 26.2188, 0.25);
    RemoveBuildingForPlayer(playerid, 727, 2378.9531, 194.0234, 26.3359, 0.25);
        return 1;
    }
Reply
#9

Quote:
Originally Posted by [bot]fatninja
View Post
man do it like
pawn Code:
public OnPlayerConnect(playerid)
    {
RemoveBuildingForPlayer(playerid, 3321, 2367.3516, 188.5156, 26.9375, 0.25);
    RemoveBuildingForPlayer(playerid, 13461, 2373.2344, 29.1719, 30.3438, 0.25);
    RemoveBuildingForPlayer(playerid, 3319, 2367.3516, 164.8750, 26.9375, 0.25);
    RemoveBuildingForPlayer(playerid, 1410, 2354.1016, 189.9219, 26.2188, 0.25);
    RemoveBuildingForPlayer(playerid, 1408, 2354.0938, 165.9766, 26.0469, 0.25);
    RemoveBuildingForPlayer(playerid, 1408, 2354.0938, 160.5078, 26.0469, 0.25);
    RemoveBuildingForPlayer(playerid, 1408, 2354.0938, 155.0313, 26.0469, 0.25);
    RemoveBuildingForPlayer(playerid, 1408, 2356.8203, 152.3047, 26.3750, 0.25);
    RemoveBuildingForPlayer(playerid, 3407, 2354.2734, 176.9453, 25.4688, 0.25);
    RemoveBuildingForPlayer(playerid, 3408, 2354.0703, 176.0234, 25.4453, 0.25);
    RemoveBuildingForPlayer(playerid, 779, 2358.9453, 191.9297, 26.0547, 0.25);
    RemoveBuildingForPlayer(playerid, 769, 2358.9453, 152.6953, 25.5703, 0.25);
    RemoveBuildingForPlayer(playerid, 3308, 2367.3516, 164.8750, 26.9375, 0.25);
    RemoveBuildingForPlayer(playerid, 3307, 2367.3516, 188.5156, 26.9375, 0.25);
    RemoveBuildingForPlayer(playerid, 1410, 2354.1016, 199.3594, 26.2188, 0.25);
    RemoveBuildingForPlayer(playerid, 1410, 2354.1016, 194.6406, 26.2188, 0.25);
    RemoveBuildingForPlayer(playerid, 727, 2378.9531, 194.0234, 26.3359, 0.25);
        return 1;
    }
pawn Code:
(23433) : error 029: invalid expression, assumed zero
(23433) : error 017: undefined symbol "playerid"
(23435) : error 017: undefined symbol "playerid"
(23435) : warning 215: expression has no effect
(23436) : error 017: undefined symbol "playerid"
(23436) : warning 215: expression has no effect
(23437) : error 017: undefined symbol "playerid"
(23437) : warning 215: expression has no effect
(23438) : error 017: undefined symbol "playerid"
(23438) : warning 215: expression has no effect
(23439) : error 017: undefined symbol "playerid"
(23439) : warning 215: expression has no effect
(23440) : error 017: undefined symbol "playerid"
(23440) : warning 215: expression has no effect
(23441) : error 017: undefined symbol "playerid"
(23441) : warning 215: expression has no effect
(23442) : error 017: undefined symbol "playerid"
(23442) : warning 215: expression has no effect
(23443) : error 017: undefined symbol "playerid"
(23443) : warning 215: expression has no effect
(23444) : error 017: undefined symbol "playerid"
(23444) : warning 215: expression has no effect
(23445) : error 017: undefined symbol "playerid"
(23445) : warning 215: expression has no effect
(23446) : error 017: undefined symbol "playerid"
(23446) : warning 215: expression has no effect
(23447) : error 017: undefined symbol "playerid"
(23447) : warning 215: expression has no effect
(23448) : error 017: undefined symbol "playerid"
(23448) : warning 215: expression has no effect
(23449) : error 017: undefined symbol "playerid"
(23449) : warning 215: expression has no effect
(23450) : error 017: undefined symbol "playerid"
(23450) : warning 215: expression has no effect
(23451) : error 017: undefined symbol "playerid"
(23451) : warning 215: expression has no effect
(23452) : warning 217: loose indentation
(23456) : warning 225: unreachable code
I also got RemoveBuildingForPlayer as a #define.
But I guess its the playerid huh.
Reply
#10

Quote:
Originally Posted by Spydah
View Post
I also got RemoveBuildingForPlayer as a #define.
If you have it as a define in your script remove the define.
Reply
#11

Quote:
Originally Posted by SilverKiller
View Post
If you have it as a define in your script remove the define.
Now i'm getting this.

pawn Code:
(23433) : error 029: invalid expression, assumed zero
(23433) : error 017: undefined symbol "playerid"
(23435) : error 017: undefined symbol "playerid"
(23436) : error 017: undefined symbol "playerid"
(23437) : error 017: undefined symbol "playerid"
(23438) : error 017: undefined symbol "playerid"
(23439) : error 017: undefined symbol "playerid"
(23440) : error 017: undefined symbol "playerid"
(23441) : error 017: undefined symbol "playerid"
(23442) : error 017: undefined symbol "playerid"
(23443) : error 017: undefined symbol "playerid"
(23444) : error 017: undefined symbol "playerid"
(23445) : error 017: undefined symbol "playerid"
(23446) : error 017: undefined symbol "playerid"
(23447) : error 017: undefined symbol "playerid"
(23448) : error 017: undefined symbol "playerid"
(23449) : error 017: undefined symbol "playerid"
(23450) : error 017: undefined symbol "playerid"
(23451) : error 017: undefined symbol "playerid"
(23452) : warning 217: loose indentation
(23456) : warning 225: unreachable code
Reply
#12

this is commeing when you used what i gave you ?
Reply
#13

Quote:
Originally Posted by [bot]fatninja
View Post
this is commeing when you used what i gave you ?
I'm now using what you gave me and this is coming.

pawn Code:
(23433) : error 029: invalid expression, assumed zero
(23433) : error 017: undefined symbol "playerid"
(23435) : error 017: undefined symbol "playerid"
(23436) : error 017: undefined symbol "playerid"
(23437) : error 017: undefined symbol "playerid"
(23438) : error 017: undefined symbol "playerid"
(23439) : error 017: undefined symbol "playerid"
(23440) : error 017: undefined symbol "playerid"
(23441) : error 017: undefined symbol "playerid"
(23442) : error 017: undefined symbol "playerid"
(23443) : error 017: undefined symbol "playerid"
(23444) : error 017: undefined symbol "playerid"
(23445) : error 017: undefined symbol "playerid"
(23446) : error 017: undefined symbol "playerid"
(23447) : error 017: undefined symbol "playerid"
(23448) : error 017: undefined symbol "playerid"
(23449) : error 017: undefined symbol "playerid"
(23450) : error 017: undefined symbol "playerid"
(23451) : error 017: undefined symbol "playerid"
(23452) : warning 217: loose indentation
(23456) : warning 225: unreachable code
Reply
#14

Use it under OnPlayerConnect, or any other callback that has playerid as a parameter.
Otherwise create a loop and use it under the loop changing 'playerid' with the loop's name, ex:
pawn Code:
for(new i = 0; i < MAX_PLAYERS; i++)
{
      // Place the code here, but change "playerid" with "i"
}
Reply
#15

Sandiel sir i have alredy told him what you have him here http://forum.sa-mp.com/showpost.php?...27&postcount=3 still no problem about that
and to Spydah sir are you sure you are useing the thing that i have shown here http://forum.sa-mp.com/showpost.php?...60&postcount=8 ?
Reply
#16

I've added this in a filterscript and it worked perfect now. Very strange but anyways thanks for the supporter it's fixed now.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)