WTF [HELP]
#1

I have all these errors on a part i have not touched i have scanned it with bracek fix 2 and the brackets come in equal i just don't know what has happend.


Код:
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4200) : error 017: undefined symbol "ProxDetector"
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4207) : error 017: undefined symbol "ProxDetector"
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4214) : error 017: undefined symbol "ProxDetector"
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4223) : error 017: undefined symbol "ProxDetector"
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4237) : error 017: undefined symbol "ProxDetector"
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4244) : error 017: undefined symbol "ProxDetector"
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4248) : error 017: undefined symbol "GivePlayerCash"
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4251) : error 017: undefined symbol "ProxDetector"
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4258) : error 017: undefined symbol "ProxDetector"
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4265) : error 017: undefined symbol "ProxDetector"
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4280) : error 017: undefined symbol "GivePlayerCash"
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4283) : error 017: undefined symbol "ProxDetector"
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4290) : error 017: undefined symbol "ProxDetector"
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4297) : error 017: undefined symbol "ProxDetector"
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4311) : error 017: undefined symbol "ProxDetector"
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4320) : error 017: undefined symbol "ProxDetector"
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4332) : error 017: undefined symbol "ProxDetector"
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4340) : error 017: undefined symbol "ProxDetector"
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4365) : error 017: undefined symbol "ProxDetector"
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4379) : error 017: undefined symbol "ProxDetector"
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4387) : error 017: undefined symbol "GivePlayerCash"
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4392) : error 017: undefined symbol "ProxDetector"
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4586) : error 017: undefined symbol "GivePlayerCash"
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4809) : error 017: undefined symbol "GivePlayerCash"
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4810) : error 017: undefined symbol "GivePlayerCash"
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4850) : error 017: undefined symbol "ProxDetector"

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


26 Errors.
If you need anything else just say
Reply
#2

Just define these variables or what it is...
new ProxDetector;
Reply
#3

Will that work because it was working before i edited it and it dident have new GivePlayerCash;
Reply
#4

Now it is say the expression has no effect
Reply
#5

C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4202) : error 012: invalid function call, not a valid address
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4202) : warning 215: expression has no effect
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4202) : warning 215: expression has no effect
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4202) : warning 215: expression has no effect
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4202) : warning 215: expression has no effect
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4202) : warning 215: expression has no effect
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4202) : warning 215: expression has no effect
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4202) : warning 215: expression has no effect
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4202) : warning 215: expression has no effect
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4202) : error 001: expected token: ";", but found ")"
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4202) : error 029: invalid expression, assumed zero
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4202) : fatal error 107: too many error messages on one line







ProxDetector(30.0, giveplayerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLO W,COLOR_YELLOW);
Reply
#6

Give me the define for ProxDetector
Reply
#7

new ProxDetector;

Do you mean i have to do #Define proxdetector because i dont have that
Reply
#8

Well the ProxDetector should do something and you haven't public with it.

Maybe this (found on forum):
Код:
forward ProxDetector(Float:radi, playerid, str[], col1, col2, col3, col4, col5);

public ProxDetector(Float:radi, playerid, str[],col1,col2,col3,col4,col5)
{
    if(IsPlayerConnected(playerid))
    {
        new Float:posx, Float:posy, Float:posz;
        new Float:oldposx, Float:oldposy, Float:oldposz;
        new Float:tempposx, Float:tempposy, Float:tempposz;
        GetPlayerPos(playerid, oldposx, oldposy, oldposz);
        //radi = 2.0; //Trigger Radius
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {

                GetPlayerPos(i, posx, posy, posz);
                tempposx = (oldposx -posx);
                tempposy = (oldposy -posy);
                tempposz = (oldposz -posz);
                //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
                if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
                {
                    SendClientMessage(i, col1, str);
                }
                else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
                {
                    SendClientMessage(i, col2, str);
                }
                else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
                {
                    SendClientMessage(i, col3, str);
                }
                else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
                {
                    SendClientMessage(i, col4, str);
                }
                else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
                {
                    SendClientMessage(i, col5, str);
                }
            }
        }
    }//not connected
    return 1;
}
Reply
#9

now i get this-



C:\Users\liam\Desktop\NLRP\pawno\include\fire2.inc (15 : warning 219: local variable "oldposx" shadows a variable at a preceding level
C:\Users\liam\Desktop\NLRP\pawno\include\fire2.inc (15 : warning 219: local variable "oldposy" shadows a variable at a preceding level
C:\Users\liam\Desktop\NLRP\pawno\include\fire2.inc (15 : warning 219: local variable "oldposz" shadows a variable at a preceding level
C:\Users\liam\Desktop\NLRP\pawno\include\fire2.inc (159) : warning 219: local variable "tempposx" shadows a variable at a preceding level
C:\Users\liam\Desktop\NLRP\pawno\include\fire2.inc (159) : warning 219: local variable "tempposy" shadows a variable at a preceding level
C:\Users\liam\Desktop\NLRP\pawno\include\fire2.inc (159) : warning 219: local variable "tempposz" shadows a variable at a preceding level
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(2312) : warning 219: local variable "posx" shadows a variable at a preceding level
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(2312) : warning 219: local variable "posy" shadows a variable at a preceding level
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(2312) : warning 219: local variable "posz" shadows a variable at a preceding level
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(2313) : warning 219: local variable "tempposx" shadows a variable at a preceding level
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(2313) : warning 219: local variable "tempposy" shadows a variable at a preceding level
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(2313) : warning 219: local variable "tempposz" shadows a variable at a preceding level
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4202) : error 012: invalid function call, not a valid address
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4202) : warning 215: expression has no effect
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4202) : warning 215: expression has no effect
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4202) : warning 215: expression has no effect
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4202) : warning 215: expression has no effect
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4202) : warning 215: expression has no effect
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4202) : warning 215: expression has no effect
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4202) : warning 215: expression has no effect
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4202) : warning 215: expression has no effect
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4202) : error 001: expected token: ";", but found ")"
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4202) : error 029: invalid expression, assumed zero
C:\Users\liam\Desktop\NLRP\gamemodes\UGRP [1].pwn(4202) : fatal error 107: too many error messages on one line
Reply
#10

Seems like you have something already defined. Look on the lines..
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)