A problem in pawno
#1

A problem in pawno.
when i compile it shows like this
pawn Код:
C:\Documents and Settings\Ironboy\Desktop\Windows server\filterscripts\simpleneon.pwn(56) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Ironboy\Desktop\Windows server\filterscripts\simpleneon.pwn(57) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Ironboy\Desktop\Windows server\filterscripts\simpleneon.pwn(65) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Ironboy\Desktop\Windows server\filterscripts\simpleneon.pwn(66) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Ironboy\Desktop\Windows server\filterscripts\simpleneon.pwn(75) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Ironboy\Desktop\Windows server\filterscripts\simpleneon.pwn(76) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Ironboy\Desktop\Windows server\filterscripts\simpleneon.pwn(85) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Ironboy\Desktop\Windows server\filterscripts\simpleneon.pwn(86) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Ironboy\Desktop\Windows server\filterscripts\simpleneon.pwn(95) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Ironboy\Desktop\Windows server\filterscripts\simpleneon.pwn(96) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Ironboy\Desktop\Windows server\filterscripts\simpleneon.pwn(105) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Ironboy\Desktop\Windows server\filterscripts\simpleneon.pwn(106) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Ironboy\Desktop\Windows server\filterscripts\simpleneon.pwn(115) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Ironboy\Desktop\Windows server\filterscripts\simpleneon.pwn(116) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Ironboy\Desktop\Windows server\filterscripts\simpleneon.pwn(125) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Ironboy\Desktop\Windows server\filterscripts\simpleneon.pwn(126) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Ironboy\Desktop\Windows server\filterscripts\simpleneon.pwn(135) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Ironboy\Desktop\Windows server\filterscripts\simpleneon.pwn(136) : error 017: undefined symbol "AttachObjectToVehicle"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


18 Errors.
how to fix it
Reply
#2

Can we see your code?
Reply
#3

Yup this should be easy to check and tell you the problem
Reply
#4

this is not my code.
i used it as a filterscript and its not working
this is the code
pawn Код:
#include <a_samp>

#pragma tabsize 0
#define neondialog 8131

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print("Simple Neon System by : wizzi");
    print("--------------------------------------\n");
    return 1;
    //*********Color****************//
        #define COLOR_YELLOW 0xFFFF00AA
        #define COLOR_BLUE 0x1229FAFF
}

public OnFilterScriptExit()
{
    return 1;
}

//**************Commands*********************//
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/takeneon", true)==0)
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    ShowPlayerDialog(playerid, neondialog, DIALOG_STYLE_LIST, "Neon Color", "Blue\nRed\nGreen\nWhite\nPink\nYellow\nSpecial[Red]\nSpecial[Green]\nSpecial[Blue]\nDellete Neon[By:wizzi]", "Select", "Cancel");
    }
    return 1;
    }
    return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{

    if(dialogid == neondialog)
    {
        if(response)
        {
            if(listitem == 0)
            {
                SetPVarInt(playerid, "Status", 1);
                SetPVarInt(playerid, "neon", CreateObject(18648,0,0,0,0,0,0));
                SetPVarInt(playerid, "neon1", CreateObject(18648,0,0,0,0,0,0));
                AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                SendClientMessage(playerid, 0xFFFFFFAA, "Neon installed");
            }
            if(listitem == 1)
            {
                SetPVarInt(playerid, "Status", 1);
                SetPVarInt(playerid, "neon2", CreateObject(18647,0,0,0,0,0,0));
                SetPVarInt(playerid, "neon3", CreateObject(18647,0,0,0,0,0,0));
                AttachObjectToVehicle(GetPVarInt(playerid, "neon2"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                AttachObjectToVehicle(GetPVarInt(playerid, "neon3"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                SendClientMessage(playerid, 0xFFFFFFAA, "Neon installed");

            }
            if(listitem == 2)
            {
                SetPVarInt(playerid, "Status", 1);
                SetPVarInt(playerid, "neon4", CreateObject(18649,0,0,0,0,0,0));
                SetPVarInt(playerid, "neon5", CreateObject(18649,0,0,0,0,0,0));
                AttachObjectToVehicle(GetPVarInt(playerid, "neon4"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                AttachObjectToVehicle(GetPVarInt(playerid, "neon5"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                SendClientMessage(playerid, 0xFFFFFFAA, "Neon installed");

                }
            if(listitem == 3)
            {
                SetPVarInt(playerid, "Status", 1);
                SetPVarInt(playerid, "neon6", CreateObject(18652,0,0,0,0,0,0));
                SetPVarInt(playerid, "neon7", CreateObject(18652,0,0,0,0,0,0));
                AttachObjectToVehicle(GetPVarInt(playerid, "neon6"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                AttachObjectToVehicle(GetPVarInt(playerid, "neon7"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                SendClientMessage(playerid, 0xFFFFFFAA, "Neon installed");

            }
            if(listitem == 4)
            {
                SetPVarInt(playerid, "Status", 1);
                SetPVarInt(playerid, "neon8", CreateObject(18651,0,0,0,0,0,0));
                SetPVarInt(playerid, "neon9", CreateObject(18651,0,0,0,0,0,0));
                AttachObjectToVehicle(GetPVarInt(playerid, "neon8"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                AttachObjectToVehicle(GetPVarInt(playerid, "neon9"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                SendClientMessage(playerid, 0xFFFFFFAA, "Neon installed");

            }
            if(listitem == 5)
            {
                SetPVarInt(playerid, "Status", 1);
                SetPVarInt(playerid, "neon10", CreateObject(18650,0,0,0,0,0,0));
                SetPVarInt(playerid, "neon11", CreateObject(18650,0,0,0,0,0,0));
                AttachObjectToVehicle(GetPVarInt(playerid, "neon10"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                AttachObjectToVehicle(GetPVarInt(playerid, "neon11"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                SendClientMessage(playerid, 0xFFFFFFAA, "Neon installed");

            }
            if(listitem == 6)
            {
                SetPVarInt(playerid, "Status", 1);
                SetPVarInt(playerid, "neon12", CreateObject(18653,0,0,0,0,0,0));
                SetPVarInt(playerid, "neon13", CreateObject(18653,0,0,0,0,0,0));
                AttachObjectToVehicle(GetPVarInt(playerid, "neon12"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                AttachObjectToVehicle(GetPVarInt(playerid, "neon13"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                SendClientMessage(playerid, 0xFFFFFFAA, "Special installed");

            }
             if(listitem == 7)
            {
                SetPVarInt(playerid, "Status", 1);
                SetPVarInt(playerid, "neon14", CreateObject(18654,0,0,0,0,0,0));
                SetPVarInt(playerid, "neon15", CreateObject(18654,0,0,0,0,0,0));
                AttachObjectToVehicle(GetPVarInt(playerid, "neon14"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                AttachObjectToVehicle(GetPVarInt(playerid, "neon15"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                SendClientMessage(playerid, 0xFFFFFFAA, "Special installed");

            }
            if(listitem == 8)
            {
                SetPVarInt(playerid, "Status", 1);
                SetPVarInt(playerid, "neon16", CreateObject(18655,0,0,0,0,0,0));
                SetPVarInt(playerid, "neon17", CreateObject(18655,0,0,0,0,0,0));
                AttachObjectToVehicle(GetPVarInt(playerid, "neon16"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                AttachObjectToVehicle(GetPVarInt(playerid, "neon17"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                SendClientMessage(playerid, 0xFFFFFFAA, "Special installed");

            }
   if(listitem == 9){DestroyObject(GetPVarInt(playerid, "neon")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon1")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon2")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon3"));
            DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon4")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon5")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon6")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon7"));
            DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon8")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon9")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon10")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon13"));
            DeletePVar(playerid, "Status");
            }
        }
    }
    return 0;
}
    public OnPlayerConnect()
        {
        new playerid;
        SendClientMessage(playerid, COLOR_BLUE,"This server use neon system by wizzi !");
        return 1;
        }
        //do not remove credits please...
Reply
#5

i used it too it's giving this warning i don't know why
Reply
#6

Are you using the latest includes ?
Reply
#7

I don't know about Iron but yes i am and it's not working
Reply
#8

Download it again and then try
Reply
#9

Lol have a look here

pawn Код:
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase
I compiled no errors and no warnings..

Hmm i don't know.
Reply
#10

Quote:
Originally Posted by Markx
Посмотреть сообщение
Download it again and then try
Works fine on mine, no errors on compile.
Good code.

I suggest you both upgrade pawno includes.
Reply
#11

can you give me the link to download ?
Reply
#12

Quote:
Originally Posted by Ironboy
Посмотреть сообщение
can you give me the link to download ?
http://www.sa-mp.com/download.php

Get the latest server package.
Reply
#13

Yes right stigg, he might be having old includes, anyway be happy ironboy there is no errors good luck.

Reply
#14

ohh you mean server package?
i think Includes.
Reply
#15

Quote:
Originally Posted by Ironboy
Посмотреть сообщение
ohh you mean server package?
i think Includes.
The includes are in the server package.
Reply
#16

awww it still says error :S
Reply
#17

Help Me Diamondeye96@yahoo.com
Diamondeye96@xfire.com

pawn Код:
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(111) : warning 201: redefinition of constant/macro (symbol "COLOR_BLUE")
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(832) : warning 225: unreachable code
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1181) : error 010: invalid function or declaration
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1183) : error 010: invalid function or declaration
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1185) : error 010: invalid function or declaration
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1194) : error 010: invalid function or declaration
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1203) : error 054: unmatched closing brace ("}")
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1204) : error 010: invalid function or declaration
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1213) : error 054: unmatched closing brace ("}")
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1214) : error 010: invalid function or declaration
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1223) : error 054: unmatched closing brace ("}")
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1224) : error 010: invalid function or declaration
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1233) : error 054: unmatched closing brace ("}")
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1234) : error 010: invalid function or declaration
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1243) : error 054: unmatched closing brace ("}")
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1244) : error 010: invalid function or declaration
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1253) : error 054: unmatched closing brace ("}")
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1254) : error 010: invalid function or declaration
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1263) : error 054: unmatched closing brace ("}")
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1264) : error 010: invalid function or declaration
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1273) : error 054: unmatched closing brace ("}")
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1274) : error 010: invalid function or declaration
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1281) : error 010: invalid function or declaration
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


21 Errors.
Reply
#18

Quote:
Originally Posted by Ironboy
Посмотреть сообщение
awww it still says error :S
What errors it shows?
Reply
#19

Quote:
Originally Posted by Roomeo
Посмотреть сообщение
pawn Код:
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(111) : warning 201: redefinition of constant/macro (symbol "COLOR_BLUE")
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(832) : warning 225: unreachable code
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1181) : error 010: invalid function or declaration
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1183) : error 010: invalid function or declaration
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1185) : error 010: invalid function or declaration
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1194) : error 010: invalid function or declaration
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1203) : error 054: unmatched closing brace ("}")
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1204) : error 010: invalid function or declaration
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1213) : error 054: unmatched closing brace ("}")
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1214) : error 010: invalid function or declaration
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1223) : error 054: unmatched closing brace ("}")
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1224) : error 010: invalid function or declaration
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1233) : error 054: unmatched closing brace ("}")
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1234) : error 010: invalid function or declaration
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1243) : error 054: unmatched closing brace ("}")
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1244) : error 010: invalid function or declaration
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1253) : error 054: unmatched closing brace ("}")
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1254) : error 010: invalid function or declaration
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1263) : error 054: unmatched closing brace ("}")
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1264) : error 010: invalid function or declaration
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1273) : error 054: unmatched closing brace ("}")
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1274) : error 010: invalid function or declaration
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1281) : error 010: invalid function or declaration
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


21 Errors.
You've just got a define twice, along with closing brace problems.
Reply
#20

i downloaded new package but it still says error
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)