SA-MP Forums Archive
[NEED HELP] How do i set this? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [NEED HELP] How do i set this? (/showthread.php?tid=502239)



[NEED HELP] How do i set this? - ChristianIvann09 - 22.03.2014

This to:

If im on BigEar any player type i can hear. even if im far to him.
Код:
    switch(PlayerInfo[playerid][pAccent])
    {
        case 0, 1:
        {
            if(AdminDuty[playerid] == 1)
            {
                format(string, sizeof(string), "%s says: (( %s )) ", sendername, text);
            }
            else
            {
                format(string, sizeof(string), "%s says: %s", sendername, text);
            }
            ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
            SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
        }
Some BigEar variables
Код:
new BigEar[MAX_PLAYERS];
Thank you very much!


Re: [NEED HELP] How do i set this? - Abagail - 22.03.2014

pawn Код:
switch(PlayerInfo[playerid][pAccent])
    {
        case 0, 1:
        {
            if(AdminDuty[playerid] == 1)
            {
                format(string, sizeof(string), "%s says: (( %s )) ", sendername, text);
            }
            else
            {
                format(string, sizeof(string), "%s says: %s", sendername, text);
            }
            ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
            SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
            foreach(Player, i) {
            if(BigEars[i] == playerid)
            {
           format(string, sizeof(string), "BIGEARS: %s says: %s", sendername, text);
           SendClientMessage(i, -1, string);
           }
           }
        }



Re: [NEED HELP] How do i set this? - ChristianIvann09 - 22.03.2014

Quote:
Originally Posted by Abagail
Посмотреть сообщение
pawn Код:
switch(PlayerInfo[playerid][pAccent])
    {
        case 0, 1:
        {
            if(AdminDuty[playerid] == 1)
            {
                format(string, sizeof(string), "%s says: (( %s )) ", sendername, text);
            }
            else
            {
                format(string, sizeof(string), "%s says: %s", sendername, text);
            }
            ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
            SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
            foreach(Player, i) {
            if(BigEars[i] == playerid)
            {
           format(string, sizeof(string), "BIGEARS: %s says: %s", sendername, text);
           SendClientMessage(i, -1, string);
           }
           }
        }
Код:
C:\Users\Cris\Desktop\0.3z Server\ASRP \gamemodes\ASRP_V2.0.pwn(48334) : warning 217: loose indentation
C:\Users\Cris\Desktop\0.3z Server\ASRP \gamemodes\ASRP_V2.0.pwn(48349) : error 017: undefined symbol "BigEars"
C:\Users\Cris\Desktop\0.3z Server\ASRP \gamemodes\ASRP_V2.0.pwn(48349) : warning 215: expression has no effect
C:\Users\Cris\Desktop\0.3z Server\ASRP \gamemodes\ASRP_V2.0.pwn(48349) : error 001: expected token: ";", but found "]"
C:\Users\Cris\Desktop\0.3z Server\ASRP \gamemodes\ASRP_V2.0.pwn(48349) : error 029: invalid expression, assumed zero
C:\Users\Cris\Desktop\0.3z Server\ASRP \gamemodes\ASRP_V2.0.pwn(48349) : fatal error 107: too many error messages on one line
Код:
Line 48334:  switch(PlayerInfo[playerid][pAccent])
48349:  if(BigEars[i] == 1)
EDIT: i change the If(BigEars[i] == playerid) to If(BigEars[i] == 1)


Re: [NEED HELP] How do i set this? - ChristianIvann09 - 22.03.2014

@Abagail

Are you still there?


Re: [NEED HELP] How do i set this? - Abagail - 22.03.2014

What is BigEar's set to? Is it set to a certain playerid? True/false?


Re: [NEED HELP] How do i set this? - ChristianIvann09 - 23.03.2014

Quote:
Originally Posted by Abagail
Посмотреть сообщение
What is BigEar's set to? Is it set to a certain playerid? True/false?
For example

I toggle my /bigears

It will set to 1

and if not it will set to 0


Re: [NEED HELP] How do i set this? - ChristianIvann09 - 23.03.2014

@Abigail


Re: [NEED HELP] How do i set this? - ChristianIvann09 - 23.03.2014

Anyone plszzz


Re: [NEED HELP] How do i set this? - ChristianIvann09 - 23.03.2014

bump


Re: [NEED HELP] How do i set this? - ChristianIvann09 - 23.03.2014

BUMP!