Undefined Symbol?
#1

Hello, i have no idea what Undefined Symbol is and could fix it it would be appreciated if anyone could help me with this:
Код:
D:\MW Generation Roleplay\gamemodes\NGRP_N~1.PWN(527) : warning 201: redefinition of constant/macro (symbol "COLOR_ORANGE")
D:\MW Generation Roleplay\gamemodes\NGRP_N~1.PWN(538) : warning 201: redefinition of constant/macro (symbol "COLOR_LIGHTRED")
D:\MW Generation Roleplay\gamemodes\NGRP_N~1.PWN(540) : warning 201: redefinition of constant/macro (symbol "COLOR_LIGHTGREEN")
D:\MW Generation Roleplay\gamemodes\NGRP_N~1.PWN(550) : warning 201: redefinition of constant/macro (symbol "COLOR_PURPLE")
D:\MW Generation Roleplay\gamemodes\NGRP_N~1.PWN(554) : warning 201: redefinition of constant/macro (symbol "COLOR_BLACK")
D:\MW Generation Roleplay\gamemodes\MWRP~1.PWN(2987) : error 017: undefined symbol "ProxDetector"
D:\MW Generation Roleplay\gamemodes\MWRP~1.PWN(2995) : error 017: undefined symbol "ProxDetector"
D:\MW Generation Roleplay\gamemodes\MWRP~1.PWN(3002) : error 017: undefined symbol "ProxDetector"
D:\MW Generation Roleplay\gamemodes\MWRP~1.PWN(3011) : error 017: undefined symbol "ProxDetector"
D:\MW Generation Roleplay\gamemodes\MWRP~1.PWN(3025) : error 017: undefined symbol "ProxDetector"
D:\MW Generation Roleplay\gamemodes\MWRP~1.PWN(3032) : error 017: undefined symbol "ProxDetector"
D:\MW Generation Roleplay\gamemodes\MWRP~1.PWN(3036) : error 017: undefined symbol "GivePlayerCash"
D:\MW Generation Roleplay\gamemodes\MWRP~1.PWN(3039) : error 017: undefined symbol "ProxDetector"
D:\MW Generation Roleplay\gamemodes\MWRP~1.PWN(3046) : error 017: undefined symbol "ProxDetector"
D:\MW Generation Roleplay\gamemodes\MWRP~1.PWN(3054) : error 017: undefined symbol "ProxDetector"
D:\MW Roleplay\gamemodes\MWRP~1.PWN(3061) : error 017: undefined symbol "ProxDetector"
D:\MW Roleplay\gamemodes\MWRP~1.PWN(3068) : error 017: undefined symbol "ProxDetector"
D:\MW Generation Roleplay\gamemodes\MWRP~1.PWN(3076) : error 017: undefined symbol "GivePlayerCash"
D:\MW Generation Roleplay\gamemodes\MWRP~1.PWN(3079) : error 017: undefined symbol "ProxDetector"
D:\MW Generation Roleplay\gamemodes\MWRP~1.PWN(3086) : error 017: undefined symbol "ProxDetector"
D:\MW Generation Roleplay\gamemodes\MWRP~1.PWN(3093) : error 017: undefined symbol "ProxDetector"
D:\MW Generation Roleplay\gamemodes\MWRP~1.PWN(3115) : error 017: undefined symbol "ProxDetector"
D:\MW Generation Roleplay\gamemodes\MWRP~1.PWN(3124) : error 017: undefined symbol "ProxDetector"
D:\MW Generation Roleplay\gamemodes\MWRP~1.PWN(3136) : error 017: undefined symbol "ProxDetector"
D:\MW Generation Roleplay\gamemodes\MWRP~1.PWN(3151) : error 017: undefined symbol "ProxDetector"
D:\MW Generation Roleplay\gamemodes\MWRP~1.PWN(3159) : error 017: undefined symbol "ProxDetector"
D:\MW Generation Roleplay\gamemodes\MWRP~1.PWN(3167) : error 017: undefined symbol "ProxDetector"
D:\MW Generation Roleplay\gamemodes\MWRP~1.PWN(3185) : error 017: undefined symbol "ProxDetector"
D:\MW Generation Roleplay\gamemodes\MWRP~1.PWN(3207) : error 017: undefined symbol "ProxDetector"
D:\MW Generation Roleplay\gamemodes\MWRP~1.PWN(3215) : error 017: undefined symbol "ProxDetector"
D:\MW Generation Roleplay\gamemodes\MWRP~1.PWN(3223) : error 017: undefined symbol "GivePlayerCash"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Reply
#2

Most likely missing a bracket somewhere.

This is not the support forum.
Reply
#3

Nah that didnt help me
Reply
#4

Review the code you most recently tampered with and match up all bracket pairs until you find the missing one.
Reply
#5

It means if one is missing then this results this much error?
Reply
#6

1) Wrong section.
2) Paste this in your script
pawn Код:
stock ProxDetector(Float:radi, playerid, str[],col1,col2,col3,col4,col5) {
    new Float:P[3], Float:OP[3], Float:TP[3];
    GetPlayerPos(playerid, OP[0], OP[1], OP[2]);
    for(new i; i < MAX_PLAYERS; i++) {
        GetPlayerPos(i, P[0], P[1], P[2]);
        TP[0] = (OP[0]-P[0]);
        TP[1] = (OP[1]-P[1]);
        TP[2] = (OP[2]-P[2]);
        if(((TP[0] < radi/16) && (TP[0] > -radi/16)) && ((TP[1] < radi/16) && (TP[1] > -radi/16)) && ((TP[2] < radi/16) && (TP[2] > -radi/16))) SendClientMessage(i, col1, str);
        else if (((TP[0] < radi/8) && (TP[0] > -radi/8)) && ((TP[1] < radi/8) && (TP[1] > -radi/8)) && ((TP[2] < radi/8) && (TP[2] > -radi/8))) SendClientMessage(i, col2, str);
        else if (((TP[0] < radi/4) && (TP[0] > -radi/4)) && ((TP[1] < radi/4) && (TP[1] > -radi/4)) && ((TP[2] < radi/4) && (TP[2] > -radi/4))) SendClientMessage(i, col3, str);
        else if (((TP[0] < radi/2) && (TP[0] > -radi/2)) && ((TP[1] < radi/2) && (TP[1] > -radi/2)) && ((TP[2] < radi/2) && (TP[2] > -radi/2))) SendClientMessage(i, col4, str);
        else if (((TP[0] < radi) && (TP[0] > -radi)) && ((TP[1] < radi) && (TP[1] > -radi)) && ((TP[2] < radi) && (TP[2] > -radi))) SendClientMessage(i, col5, str);
    }
    return 1;
}
Reply
#7

Quote:
Originally Posted by Imperor
Посмотреть сообщение
It means if one is missing then this results this much error?
Yes. The above post will not fix your problem, just find the missing bracket.
Reply
#8

Quote:
Originally Posted by zDevon
Посмотреть сообщение
Yes. The above post will not fix your problem, just find the missing bracket.
If you're missing a bracket, you will get
Код:
error 004: function ******* is not implemented
smartass..
Reply
#9

No, zDevon is correct (even though I identified the problem before he did.)

There's a missing bracket somewhere, missing brackets cause the script to misinterpret the code below the function with the missing bracket.
Use a missing brackets finder OR use #error after a function, compile, if you get user error move to the next function and repeat.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)