A Couple things I need help on. (;
#1

Hello,
I wanna make a command when you type "/mask" It changes your name to "Stranger" and only a certain faction can use the command, Can someone lead me to a page where I may make this command? =P

Also,
I get these Warnings:
Код:
C:\Users\Jordan\Desktop\Windows-Server\gamemodes\vx-rp.pwn(678) : warning 213: tag mismatch
C:\Users\Jordan\Desktop\Windows-Server\gamemodes\vx-rp.pwn(678) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
On this line:
Код:
	CreateDynamicPickup(-158.4081, 1122.5696, 19.7422, 0, -1, -1, 50);
Reply
#2

pawn Код:
CreateDynamicPickup(modelid, type, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
Your missing modelid and type.
Reply
#3

Urm, All I done was change the coords.
Reply
#4

Quote:
Originally Posted by [MP]Ditch
Посмотреть сообщение
Urm, All I done was change the coords.
You must of pasted over the first 2 values. Use the undo button and start again.
Reply
#5

Thanks, I sorted it, Can you please help me with Question 1?
Reply
#6

Like if a player types /mask Only his name Dissappears.
Reply
#7

pawn Код:
new Stranger[MAX_PLAYERS]; //Global Var

CMD:mask(playerid, params[])
{
    if(PInfo[playerid][pFaction] == factionid)
    {
        if(PInfo[playerid][pMask] == 0)
        {
            PlayerInfo[playerid][pMask] = 1;
            SendClientMessage(playerid, 0xFFFFFF, "Mask ON.");
            Stranger[playerid]++;
            SetPlayerName(playerid, Stranger[playerid]);
        }
        else if(PInfo[playerid][pMask] == 1)
        {
            PlayerInfo[playerid][pMask] =0;
            SendClientMessage(playerid, 0xFFFFFF, "Mask OFF.");
            Stranger[playerid--;
            SetPlayerName(playerid, PInfo[playerid][pName]);
        }
    }
    else
    {
        SendClientMessage(playerid, 0xFFFFFF, "You're not allowed to do that.");
    }
    return 1;
}
I haven't scripting properly in a while.
Reply
#8

And where does it say in that Command there name dissappears?
Reply
#9

Hoping it works, edited the other post.
Reply
#10

Код:
C:\Users\Jordan\Desktop\Windows-Server\gamemodes\vx-rp.pwn(10114) : error 017: undefined symbol "PInfo"
C:\Users\Jordan\Desktop\Windows-Server\gamemodes\vx-rp.pwn(10114) : warning 215: expression has no effect
C:\Users\Jordan\Desktop\Windows-Server\gamemodes\vx-rp.pwn(10114) : error 001: expected token: ";", but found "]"
C:\Users\Jordan\Desktop\Windows-Server\gamemodes\vx-rp.pwn(10114) : error 029: invalid expression, assumed zero
C:\Users\Jordan\Desktop\Windows-Server\gamemodes\vx-rp.pwn(10114) : fatal error 107: too many error messages on one line

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


4 Errors.
This is strange because if you look at error one, I looked at another command and it said "PlayerVariables" I changed it to that and still got the errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)