SA-MP Forums Archive
Weird Errors !!! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Weird Errors !!! (/showthread.php?tid=493252)



Weird Errors !!! - Ahmad45123 - 07.02.2014

Hey, Guys

I wanna make a credit card system, and when i put this code :
pawn Код:
CMD:buycard(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 15.0, 2308.7346, -11.0134, 26.7422))
    {
        new number = random(99999999);
        new name[180];
        new string[180];
        new pass[180];
        if(sscanf(params, "s", pass)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /buycard [PassWord]");
        if (GetPlayerCash(playerid) >= 1000)
        {
            GivePlayerCash(playerid, -1000);
            GetPlayerName(playerid, name, sizeof(name));
            MakeCard(number,"0" ,name , pass);
            format(string, sizeof(string), "Your Number Is %i And Your PassWord Is %s", number, pass);
            SendClientMessage(playerid, COLOR_GRAD4, "You Have Bought A Credit Card");
            SendClientMessage(playerid, COLOR_GRAD5, string);
            SendClientMessage(playerid, COLOR_WHITE, "HINT: Use /stats To Get Your Card Information.");
            return 1;
        {
        else
        {
            SendClientMessageEx(playerid, COLOR_GRAD4, "You don't have the cash for this item!");
        }
    }
    else
    {
        SendClientMessageEx(playerid, COLOR_GREY, "You are not at the bank!");
        return 1;
    }
}
It brings this errors :
Код:
D:\Ahmed\RGRP\gamemodes\RGRP.pwn(2607) : error 017: undefined symbol "RBS"
D:\Ahmed\RGRP\gamemodes\RGRP.pwn(2608) : error 017: undefined symbol "RBS"
D:\Ahmed\RGRP\gamemodes\RGRP.pwn(3367) : error 017: undefined symbol "ProxDetector"
D:\Ahmed\RGRP\gamemodes\RGRP.pwn(3374) : error 017: undefined symbol "ProxDetector"
D:\Ahmed\RGRP\gamemodes\RGRP.pwn(3381) : error 017: undefined symbol "ProxDetector"
D:\Ahmed\RGRP\gamemodes\RGRP.pwn(3390) : error 017: undefined symbol "ProxDetector"
D:\Ahmed\RGRP\gamemodes\RGRP.pwn(3404) : error 017: undefined symbol "ProxDetector"
D:\Ahmed\RGRP\gamemodes\RGRP.pwn(3411) : error 017: undefined symbol "ProxDetector"
D:\Ahmed\RGRP\gamemodes\RGRP.pwn(3415) : error 017: undefined symbol "GivePlayerCash"
D:\Ahmed\RGRP\gamemodes\RGRP.pwn(3418) : error 017: undefined symbol "ProxDetector"
D:\Ahmed\RGRP\gamemodes\RGRP.pwn(3425) : error 017: undefined symbol "ProxDetector"
D:\Ahmed\RGRP\gamemodes\RGRP.pwn(3433) : error 017: undefined symbol "GivePlayerCash"
D:\Ahmed\RGRP\gamemodes\RGRP.pwn(3436) : error 017: undefined symbol "ProxDetector"
D:\Ahmed\RGRP\gamemodes\RGRP.pwn(3443) : error 017: undefined symbol "ProxDetector"
D:\Ahmed\RGRP\gamemodes\RGRP.pwn(3450) : error 017: undefined symbol "ProxDetector"
D:\Ahmed\RGRP\gamemodes\RGRP.pwn(3464) : error 017: undefined symbol "ProxDetector"
D:\Ahmed\RGRP\gamemodes\RGRP.pwn(3473) : error 017: undefined symbol "ProxDetector"
D:\Ahmed\RGRP\gamemodes\RGRP.pwn(3485) : error 017: undefined symbol "ProxDetector"
D:\Ahmed\RGRP\gamemodes\RGRP.pwn(3504) : error 017: undefined symbol "ProxDetector"
D:\Ahmed\RGRP\gamemodes\RGRP.pwn(3518) : error 017: undefined symbol "ProxDetector"
D:\Ahmed\RGRP\gamemodes\RGRP.pwn(3532) : error 017: undefined symbol "ProxDetector"
D:\Ahmed\RGRP\gamemodes\RGRP.pwn(3540) : error 017: undefined symbol "GivePlayerCash"
D:\Ahmed\RGRP\gamemodes\RGRP.pwn(3545) : error 017: undefined symbol "ProxDetector"
D:\Ahmed\RGRP\gamemodes\RGRP.pwn(3673) : error 017: undefined symbol "ShowEditMenu"
D:\Ahmed\RGRP\gamemodes\RGRP.pwn(3677) : error 017: undefined symbol "ShowEditMenu"
D:\Ahmed\RGRP\gamemodes\RGRP.pwn(4009) : error 017: undefined symbol "GivePlayerCash"

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


26 Errors.
So, really thise errors are weird, even they are not in my code, errors come in another place, when i put this code

Really Weird

NOTE: IF I DELETED MY CODE, IT WORKS


Re: Weird Errors !!! - Abagail - 07.02.2014

It has something to do with your brackets.


Re: Weird Errors !!! - Ahmad45123 - 07.02.2014

Quote:
Originally Posted by Abagail
Посмотреть сообщение
It has something to do with your brackets.
I think my brackets are well....