What is wrong here?
#1

This is what it says in my pawno
pawn Код:
}
public OnPlayerConnect(playerid)

    GameTextForPlayer(playerid,"~w~Galaxy Trucking Server",5000,5);
    return 1;
)
And what shows up when i compile
pawn Код:
public.pwn(206) : error 010: invalid function or declaration
What's wrong?
Reply
#2

It should be like this:
pawn Код:
public OnPlayerConnect(playerid)
{
    GameTextForPlayer(playerid,"~w~Galaxy Trucking Server",5000,5);
    return 1;
}
Reply
#3

Quote:
Originally Posted by Norck
Посмотреть сообщение
It should be like this:
pawn Код:
public OnPlayerConnect(playerid)
{
    GameTextForPlayer(playerid,"~w~Galaxy Trucking Server",5000,5);
    return 1;
}
Ooh.. Ofcourse. Thanks :P
Reply
#4

To make it clear, you should allways put your code between to brackets "{ and }" so, those brackets actually mean group of code that will be called under your public, stock, or whatever section. So, watch out next time.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)