I don't get this
#1

This is what it says in my pawno
pawn Код:
(
public OnPlayerConnect(playerid)
)
       return1;
(
And this is what it says when i compile it
pawn Код:
pwn(200) : warning 217: loose indentation
C:\Users\Johannes\Desktop\Galaxy Trucking\gamemodes\public.pwn(200 -- 201) : error 029: invalid expression, assumed zero
C:\Users\Johannes\Desktop\Galaxy Trucking\gamemodes\public.pwn(201) : error 017: undefined symbol "playerid"
C:\Users\Johannes\Desktop\Galaxy Trucking\gamemodes\public.pwn(201) : error 029: invalid expression, assumed zero
C:\Users\Johannes\Desktop\Galaxy Trucking\gamemodes\public.pwn(201) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
Line 200 and 201 is the two first

Anyone got an idea why this is wrong?.. I have been trying everything
Reply
#2

pawn Код:
public OnPlayerConnect(playerid)
{
    return 1;
}
Reply
#3

pawn Код:
pwn(200) : error 029: invalid expression, assumed zero
C:\Users\Johannes\Desktop\Galaxy Trucking\gamemodes\public.pwn(200) : error 004: function "OnPlayerConnect" is not implemented
C:\Users\Johannes\Desktop\Galaxy Trucking\gamemodes\public.pwn(205) : warning 225: unreachable code
C:\Users\Johannes\Desktop\Galaxy Trucking\gamemodes\public.pwn(205) : error 029: invalid expression, assumed zero
C:\Users\Johannes\Desktop\Galaxy Trucking\gamemodes\public.pwn(205 -- 206) : warning 215: expression has no effect
C:\Users\Johannes\Desktop\Galaxy Trucking\gamemodes\public.pwn(206) : error 001: expected token: ";", but found "public"
C:\Users\Johannes\Desktop\Galaxy Trucking\gamemodes\public.pwn(206) : error 029: invalid expression, assumed zero
C:\Users\Johannes\Desktop\Galaxy Trucking\gamemodes\public.pwn(206) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


7 Errors.
Reply
#4

Do
pawn Код:
#include <a_samp>
on top of your script
Reply
#5

Quote:
Originally Posted by BigETI
Посмотреть сообщение
Do
pawn Код:
#include <a_samp>
on top of your script
It has always been there.
Reply
#6

Show the whole code.
Reply
#7

Which code? The include on the top? Or the onplayerconnect?
Reply
#8

He means the whole code
Reply
#9

I think he's doing some mistake

Make a blank page. and paste this

pawn Код:
#include <a_samp>

public OnPlayerConnect(playerid)
{
        return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)