An question -
miley1 - 22.05.2012
Ive beeing asked this a plenty Of times but havent Got an good answer yet ...
I wish To remove Buildings From my Server
Poeple told me since 0.3e Came out u dont need an Plugin for it anymore , because Incegnito fixed it
So when I insert Those lines on my Ongamemodeinit'
lines
PHP код:
public OnPlayerConnect(playerid)
{
RemoveBuildingForPlayer(playerid, 4026, 1497.7969, -1543.7109, 17.5547, 200.0);
return 1;
}
I get those errors
PHP код:
C:\Users\Snor !\Desktop\Roleplayu\gamemodes\audi.pwn(20250) : error 029: invalid expression, assumed zero
C:\Users\Snor !\Desktop\Roleplayu\gamemodes\audi.pwn(20250) : error 017: undefined symbol "playerid"
C:\Users\Snor !\Desktop\Roleplayu\gamemodes\audi.pwn(20252) : error 017: undefined symbol "playerid"
C:\Users\Snor !\Desktop\Roleplayu\gamemodes\audi.pwn(20257) : warning 225: unreachable code
C:\Users\Snor !\Desktop\Roleplayu\gamemodes\audi.pwn(20257) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
Have I done something wrong?
Do i need to Define something before i couldt do this? pls help me out
Re: An question -
Jonny5 - 22.05.2012
i dont see that native in the include.
or anywhere it says anything about this native.
Re: An question -
miley1 - 22.05.2012
Poeple Told me The include aint needed anymore for 0.3e... so how i do this...
Re: An question -
Jonny5 - 22.05.2012
what people?
you
have to use the include or pawn will not know the natives for streamer,
simple as that.
and in the include i don't see that function so it does not exists
or you have to define it yourself.
Re: An question -
miley1 - 22.05.2012
Gosh.... I hate downloading crap
Re: An question -
MP2 - 22.05.2012
What on earth are you all talking about? There is NO include, it's a NATIVE (default) function.
Re: An question -
vvhy - 22.05.2012
you are only showing 5 lines the errors you are getting range from lines 20250 - 20257 post all those lines and maybe I can help.
Re: An question -
Jonny5 - 22.05.2012
Quote:
Originally Posted by MP2
What on earth are you all talking about? There is NO include, it's a NATIVE (default) function.
|
um well he EDITED his post
and made me look stupid in doing so.
he was asking about
RemoveDynamicBuildingForPlayer,
and had the error of undefined symbol.
And lead me to think he was trying to use a streamer function as
thats what his post talks about. This is why i said that function does not exist!
i will learn to quote people before i answer them some day...
and not to correct you but every native must be declared
be it in the gamemode itself or an include
RemoveBuildingForPlayer is also one of them
and can be found in a_players.inc
so yes it does need an include it just so happens everyone includes the a_samp include file
without defining the native pawn has no way to know about the native,
eg the name, arguments ect..
this dont matter if its a plugin native or that of samp itself.