Help with /mask
#1

Hey, i'v never created a mask system before and heres my code.
PHP код:
CMD:mask(playerid,params[])
{
    new 
pName[MAX_PLAYER_NAME],Masked;
    new 
oldname GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
    if(
groupVariables[playerVariables[playerid][pGroup]][gGroupType] == && playerVariables[playerid][pGroup] != && Masked == 0)
    {
        
SetPlayerName(playerid,"Masked Person");
        
SendClientMessage(playerid,COLOR_WHITE,"You've put a mask on.");
        
Masked 1;
    }
    else if(
groupVariables[playerVariables[playerid][pGroup]][gGroupType] == && playerVariables[playerid][pGroup] != && Masked == 1)
    {
        
SetPlayerName(playerid,oldname);
        
Masked 0;
    }
    return 
1;

And the SetPlayerName(playerid,oldname); says like
Код:
C:\Documents and Settings\Customer\Desktop\Linux-Server\gamemodes\vx-rp.pwn(9339) : error 035: argument type mismatch (argument 2)
So How would I get their name, before the do /mask, and reuse there name under SetPlayerName(playerid,oldname); again
Reply


Messages In This Thread
Help with /mask - by Azzeto - 12.12.2011, 13:17
Re: Help with /mask - by THE_KNOWN - 12.12.2011, 13:22
Re: Help with /mask - by suhrab_mujeeb - 12.12.2011, 13:26
Re: Help with /mask - by Azzeto - 12.12.2011, 14:06

Forum Jump:


Users browsing this thread: 1 Guest(s)