/m(icrophone) with ranks
#1

Microphone
pawn Код:
if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
        {
            format(string, sizeof(string), "[SFPD %s:o< %s]", GetPlayerNameEx(playerid), params);
            ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
        }
for rank function is

pawn Код:
pRank,
Rank
I want example

Код:
SFPD Lieutenant George Maxwell:o< test
Reply
#2

pawn Код:
if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
        {
           
new rank = PlayerInfo[playerid][pRank]
format(string, sizeof(string), "[SFPD %s %s:o< %s]",rank, GetPlayerNameEx(playerid), params);
            ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
        }

Should be working, untested though
Reply
#3

Its not a microphone, its a megaphone, jesus.
Reply
#4

Quote:
Originally Posted by Georgi166
Посмотреть сообщение
Its not a microphone, its a megaphone, jesus.
You posted just to say that? He is asking for scripting help and not grammar help.

OT: Did it work?
Reply
#5

i'm dont try yet.. but i will try in minutes...
Reply
#6

error

Код:
C:\Users\GW\Desktop\New files\GtA SA\RGRP by Ghazi\gamemodes\pgrp6.pwn(57277) : error 001: expected token: ";", but found "-identifier-"
pawn Код:
if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
        {
        new rank = PlayerInfo[playerid][pRank]
            format(string, sizeof(string), "[SFPD %s %s:o< %s]",rank, GetPlayerNameEx(playerid), params); //linerror
            ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
        }
Reply
#7

Change
pawn Код:
new rank = PlayerInfo[playerid][pRank]
to this:
pawn Код:
new rank = PlayerInfo[playerid][pRank];
Reply
#8

Thanks iZN and RedWolfX it's work
Reply
#9

guy when i try in-game it's doesnt show the rank name
it's only like below

Код:
SFPD [space] My_Name:o< text
Reply
#10

Right, I forgot about that. Do you have a GetPlayerRank code?

If you do, replace rank with GetPlayerRank(playerid)

pawn Код:
format(string, sizeof(string), "[SFPD %s %s:o< %s]",GetPlayerRank(playerid), GetPlayerNameEx(playerid), params); //linerror
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)