Am help with few errors
#1

C:\Documents and Settings\pileto\Desktop\SAMP Server Control Shortcuts\California Streets Roleplay Gamemode\gamemodes\GTARP.pwn(3225) : error 017: undefined symbol "GivePlayerCash"
C:\Documents and Settings\pileto\Desktop\SAMP Server Control Shortcuts\California Streets Roleplay Gamemode\gamemodes\GTARP.pwn(3249) : error 017: undefined symbol "ProxDetector"
C:\Documents and Settings\pileto\Desktop\SAMP Server Control Shortcuts\California Streets Roleplay Gamemode\gamemodes\GTARP.pwn(3264) : error 017: undefined symbol "GivePlayerCash"
C:\Documents and Settings\pileto\Desktop\SAMP Server Control Shortcuts\California Streets Roleplay Gamemode\gamemodes\GTARP.pwn(3289) : error 017: undefined symbol "ABroadCast"
C:\Documents and Settings\pileto\Desktop\SAMP Server Control Shortcuts\California Streets Roleplay Gamemode\gamemodes\GTARP.pwn(3295) : error 017: undefined symbol "Log"
C:\Documents and Settings\pileto\Desktop\SAMP Server Control Shortcuts\California Streets Roleplay Gamemode\gamemodes\GTARP.pwn(3300) : error 017: undefined symbol "Log"
C:\Documents and Settings\pileto\Desktop\SAMP Server Control Shortcuts\California Streets Roleplay Gamemode\gamemodes\GTARP.pwn(3322) : error 017: undefined symbol "Log"
C:\Documents and Settings\pileto\Desktop\SAMP Server Control Shortcuts\California Streets Roleplay Gamemode\gamemodes\GTARP.pwn(3367) : error 017: undefined symbol "ABroadCast"
C:\Documents and Settings\pileto\Desktop\SAMP Server Control Shortcuts\California Streets Roleplay Gamemode\gamemodes\GTARP.pwn(3371) : error 017: undefined symbol "Log"
C:\Documents and Settings\pileto\Desktop\SAMP Server Control Shortcuts\California Streets Roleplay Gamemode\gamemodes\GTARP.pwn(3382) : error 012: invalid function call, not a valid address
C:\Documents and Settings\pileto\Desktop\SAMP Server Control Shortcuts\California Streets Roleplay Gamemode\gamemodes\GTARP.pwn(3382) : warning 215: expression has no effect
C:\Documents and Settings\pileto\Desktop\SAMP Server Control Shortcuts\California Streets Roleplay Gamemode\gamemodes\GTARP.pwn(3382) : warning 215: expression has no effect
C:\Documents and Settings\pileto\Desktop\SAMP Server Control Shortcuts\California Streets Roleplay Gamemode\gamemodes\GTARP.pwn(3382) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\pileto\Desktop\SAMP Server Control Shortcuts\California Streets Roleplay Gamemode\gamemodes\GTARP.pwn(3382) : error 029: invalid expression, assumed zero
C:\Documents and Settings\pileto\Desktop\SAMP Server Control Shortcuts\California Streets Roleplay Gamemode\gamemodes\GTARP.pwn(3382) : fatal error 107: too many error messages on one line

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


13 Errors.

How to fix it?
Reply
#2

Pretty obvious. Define the damn shit.

First off, the correct way to give people money is GivePlayerMoney, unless you have a custom stock/function (Of course, it looks like you don't)

pawn Код:
forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);
//==============================================================================
public ProxDetector(Float:radi, playerid, string[],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);
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i) && (GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i)))
            {
                GetPlayerPos(i, posx, posy, posz);
                tempposx = (oldposx -posx);
                tempposy = (oldposy -posy);
                tempposz = (oldposz -posz);
                if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16))) // If the player is within 16 meters
                {
                    SendClientMessage(i, col1, string);
                }
                else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8))) // within 8 meters
                {
                    SendClientMessage(i, col2, string);
                }
                else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4))) //4 meters
                {
                    SendClientMessage(i, col3, string);
                }
                else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2))) //2 meters
                {
                    SendClientMessage(i, col4, string);
                }
                else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) //1 meter
                {
                    SendClientMessage(i, col5, string);
                }
            }
            else
            {
                SendClientMessage(i, col1, string);
            }
        }
    }
    return 1;
}
Found this, called ProxDetector. You don't have that defined either.

If you need more help, you NEED to show some code. We have no idea what you're doing with Log and shit.
Reply
#3

C:\Documents and Settings\pileto\Desktop\SAMP Server Control Shortcuts\California Streets Roleplay Gamemode\gamemodes\GTARP.pwn(3291) : warning 219: local variable "log" shadows a variable at a preceding level
C:\Documents and Settings\pileto\Desktop\SAMP Server Control Shortcuts\California Streets Roleplay Gamemode\gamemodes\GTARP.pwn(3294) : error 012: invalid function call, not a valid address
C:\Documents and Settings\pileto\Desktop\SAMP Server Control Shortcuts\California Streets Roleplay Gamemode\gamemodes\GTARP.pwn(3294) : warning 215: expression has no effect
C:\Documents and Settings\pileto\Desktop\SAMP Server Control Shortcuts\California Streets Roleplay Gamemode\gamemodes\GTARP.pwn(3294) : warning 215: expression has no effect
C:\Documents and Settings\pileto\Desktop\SAMP Server Control Shortcuts\California Streets Roleplay Gamemode\gamemodes\GTARP.pwn(3294) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\pileto\Desktop\SAMP Server Control Shortcuts\California Streets Roleplay Gamemode\gamemodes\GTARP.pwn(3294) : error 029: invalid expression, assumed zero
C:\Documents and Settings\pileto\Desktop\SAMP Server Control Shortcuts\California Streets Roleplay Gamemode\gamemodes\GTARP.pwn(3294) : fatal error 107: too many error messages on one line

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


4 Errors.

These are the nexty i get.i don't understand the wrong thing.
Reply
#4

Well, just incase you didn't read.

Quote:
Originally Posted by Me
If you need more help, you NEED to show some code. We have no idea what you're doing with Log and shit.
and again

Quote:
Originally Posted by Me
If you need more help, you NEED to show some code. We have no idea what you're doing with Log and shit.
and if you can't read those two, read this:

Quote:
Originally Posted by Me
If you need more help, you NEED to show some code. We have no idea what you're doing with Log and shit.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)