/togpm for VIP's problem
#1

i want to make..
if is player VIP can block PMs, if isn't cant block PMs xD but i have little problems...

Код:
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod.pwn(1526) : error 017: undefined symbol "NoPM"
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod.pwn(1531) : error 017: undefined symbol "NoPM"
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod.pwn(2880) : warning 217: loose indentation
Код:
CMD:togpm(playerid, params[])
{
        if(PlayerInfo[playerid][VIP] == 1)
        {
            PlayerInfo[playerid][NoPM] = 1;
            SendClientMessage(playerid, COLOR_GREEN, "[SERVER]You are no longer accepting private messages");
        }
        else
        {
            PlayerInfo[playerid][NoPM] = 0;
            SendClientMessage(playerid, COLOR_GREEN, "[SERVER]You are now accepting private messages");
        }
        return 1;
}
Reply
#2

Quote:

undefined symbol "NoPM"

Have you defined 'NoPM' variable in PlayerInfo enum?
Reply
#3

its now defubed in enum ...

bit i need to block PMs on some way?
Reply
#4

If you have now defined, then compile it.

Check at /pm and don't allow someone to pm player, if player has NoPM = 1
Reply
#5

yes, i compiled it without erros, but its doesnt block PMs... they can still send me PMs
Reply
#6

sorry for DP, but i can block PMs but i nee dto relog... how to make that i dont need to go relog to block/accept PMs
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)