SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 20/06/2012, 08:19 PM   #1
Mutilate
Little Clucker
 
Mutilate's Avatar
 
Join Date: Feb 2012
Posts: 10
Reputation: 0
Default Am help with few errors

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 (c) 1997-2006, ITB CompuPhase


13 Errors.

How to fix it?
Mutilate is offline   Reply With Quote
Old 20/06/2012, 08:21 PM   #2
Kindred
High-roller
 
Join Date: Aug 2011
Posts: 1,252
Reputation: 504
Default Re: Am help with few errors

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 Code:
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.
Kindred is offline   Reply With Quote
Old 20/06/2012, 08:50 PM   #3
Mutilate
Little Clucker
 
Mutilate's Avatar
 
Join Date: Feb 2012
Posts: 10
Reputation: 0
Default Re: Am help with few errors

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 (c) 1997-2006, ITB CompuPhase


4 Errors.

These are the nexty i get.i don't understand the wrong thing.
Mutilate is offline   Reply With Quote
Old 20/06/2012, 09:09 PM   #4
Kindred
High-roller
 
Join Date: Aug 2011
Posts: 1,252
Reputation: 504
Default Re: Am help with few errors

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.
Kindred is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Facing errors.. Loads of errors.. TheNavigator Scripting Help 8 28/08/2011 10:13 PM
[ERRORS] Errors appear after adding a Gang System. ••• ĤÁĶÁM ••• Help Archive 17 27/10/2010 06:19 PM
[Errors]Compiling Errors SamAlexSam Help Archive 2 04/02/2010 02:31 PM
Common compiling errors - READ BEFORE POSTING ERRORS Streetplaya Help Archive 0 23/01/2010 12:20 PM
Shows Errors but no errors in this line Kane_Phoenix Help Archive 2 31/03/2009 03:38 PM


All times are GMT. The time now is 08:26 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.