An question
#1

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(playerid40261497.7969, -1543.710917.5547200.0);
    return 
1;

I get those errors


PHP код:
C:\Users\Snor !\Desktop\Roleplayu\gamemodes\audi.pwn(20250) : error 029invalid expressionassumed zero
C
:\Users\Snor !\Desktop\Roleplayu\gamemodes\audi.pwn(20250) : error 017undefined symbol "playerid"
C:\Users\Snor !\Desktop\Roleplayu\gamemodes\audi.pwn(20252) : error 017undefined symbol "playerid"
C:\Users\Snor !\Desktop\Roleplayu\gamemodes\audi.pwn(20257) : warning 225unreachable code
C
:\Users\Snor !\Desktop\Roleplayu\gamemodes\audi.pwn(20257) : warning 217loose indentation
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
3 Errors


Have I done something wrong?
Do i need to Define something before i couldt do this? pls help me out
Reply
#2

i dont see that native in the include.
or anywhere it says anything about this native.
Reply
#3

Poeple Told me The include aint needed anymore for 0.3e... so how i do this...
Reply
#4

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.
Reply
#5

Gosh.... I hate downloading crap
Reply
#6

What on earth are you all talking about? There is NO include, it's a NATIVE (default) function.
Reply
#7

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.
Reply
#8

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)