A Couple things I need help on. (; -
BleverCastard - 06.01.2012
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);
Re: A Couple things I need help on. (; -
Stigg - 06.01.2012
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.
Re: A Couple things I need help on. (; -
BleverCastard - 06.01.2012
Urm, All I done was change the coords.
Re: A Couple things I need help on. (; -
Stigg - 06.01.2012
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.
Re: A Couple things I need help on. (; -
BleverCastard - 06.01.2012
Thanks, I sorted it, Can you please help me with Question 1?
Re: A Couple things I need help on. (; -
BleverCastard - 06.01.2012
Like if a player types /mask Only his name Dissappears.
Re: A Couple things I need help on. (; -
Luis- - 06.01.2012
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.
Re: A Couple things I need help on. (; -
BleverCastard - 06.01.2012
And where does it say in that Command there name dissappears?
Re: A Couple things I need help on. (; -
Luis- - 06.01.2012
Hoping it works, edited the other post.
Re: A Couple things I need help on. (; -
BleverCastard - 06.01.2012
Код:
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.