Compile Error
#1

why it giving compile error please help me guys

C:\Users\Desktop\LuxAdmin.pwn(3951) : error 029: invalid expression, assumed zero
C:\Users\Desktop\LuxAdmin.pwn(4280) : error 029: invalid expression, assumed zero
C:\Users\Desktop\LuxAdmin.pwn(4280) : error 017: undefined symbol "F"
C:\Users\Desktop\LuxAdmin.pwn(4280) : error 029: invalid expression, assumed zero
C:\Users\Desktop\LuxAdmin.pwn(4280) : fatal error 107: too many error messages on one line

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


5 Errors.


http://pastebin.com/wujQH8rq
Reply
#2

Change
pawn Код:
if(AccInfo[playerid][Level] >= 0
To:
pawn Код:
if(AccInfo[playerid][Level] >= 0)
Reply
#3

Quote:
Originally Posted by Necip
Посмотреть сообщение
Change
pawn Код:
if(AccInfo[playerid][Level] >= 0
To:
pawn Код:
if(AccInfo[playerid][Level] >= 0)
But in which dcmd_ ?
Reply
#4

Line 3951.

Remove the F from line 4280 also:
pawn Код:
if(AccInfo[playerid][Level] >= 0 || IsPlayerAdmin(playerid))
Reply
#5

Thank you so much bro
Reply
#6

Can you put all your current function on pawn tags? Thanks.
Reply
#7

Guys please help ...

This is godmode code

Код:
dcmd_god(playerid,params[])
{
    #pragma unused params
        if(AccInfo[playerid][Level] >= 0)
        {
            AccInfo[playerid][God] = 1;
            SetPlayerHealth(playerid,100000);
            ResetPlayerWeapons(playerid); 
            SendClientMessage(playerid,green,"|- GodMod ON -|");
            SendClientMessage(playerid,red,"You cannot use weapons in godmode");
            return SendCommandToAdmins(playerid,"God");
            }
            else
            {
            AccInfo[playerid][God] = 0;
            SendClientMessage(playerid,red,"|- GodMod OFF -|");
            SendClientMessage(playerid,red,"Now you can safely use your weapons");
            SetPlayerHealth(playerid, 100);
        }
        return GivePlayerWeapon(playerid,29,500); 
   }
It's working but how to block /w command so that player cannot get weapon by using this command ?
Reply
#8

Quote:
Originally Posted by vikassharma
Посмотреть сообщение
Guys please help ...

This is godmode code

Код:
dcmd_god(playerid,params[])
{
    #pragma unused params
        if(AccInfo[playerid][Level] >= 0)
        {
            AccInfo[playerid][God] = 1;
            SetPlayerHealth(playerid,100000);
            ResetPlayerWeapons(playerid); 
            SendClientMessage(playerid,green,"|- GodMod ON -|");
            SendClientMessage(playerid,red,"You cannot use weapons in godmode");
            return SendCommandToAdmins(playerid,"God");
            }
            else
            {
            AccInfo[playerid][God] = 0;
            SendClientMessage(playerid,red,"|- GodMod OFF -|");
            SendClientMessage(playerid,red,"Now you can safely use your weapons");
            SetPlayerHealth(playerid, 100);
        }
        return GivePlayerWeapon(playerid,29,500); 
   }
It's working but how to block /w command so that player cannot get weapon by using this command ?
pawn Код:
//The /w script here
if(AccInfo[playerid][God] == 1) return SendClientMessage(playerid, -1, "* You can't use /w while in God-Mode!");
//rest of script here
Reply
#9

Quote:
Originally Posted by Kyance
Посмотреть сообщение
pawn Код:
//The /w script here
if(AccInfo[playerid][God] == 1) return SendClientMessage(playerid, -1, "* You can't use /w while in God-Mode!");
//rest of script here
But this will only show message it will not block /w usage right ?
Reply
#10

Could you show me /w? I cant open that pastebin on my PC. Old PC.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)