Errors...
#1

Hi everyone,

I just made these stock functions, and yeah, i know, is suck at making stock functions..
here are the stocks:

pawn Код:
stock HasMask(playerid)
{
    if(PInfo[playerid][Mask] == 1)
    {
    HMask = "Yes";//line 1039
    }
    else
    {
    HMask = "No";
    }
    return HMask;
}

stock HasSex(playerid)
{
    if(PInfo[playerid][PSex] == 0)
    {
    PlayerSex = "Male";
    }
    else
    {
    PlayerSex = "Female";//line 1043
    }
    return PlayerSex;
}
and the errors..
Код:
F:\Programming\WSRP\gamemodes\Untitled.pwn(1039) : error 006: must be assigned to an array
F:\Programming\WSRP\gamemodes\Untitled.pwn(1043) : error 006: must be assigned to an array
Does anyone know what goes wrong!?
Reply
#2

How did you created HMask?
It need to be a string like
new HMask[4];
Reply
#3

Quote:
Originally Posted by TzAkS.
Посмотреть сообщение
How did you created HMask?
It need to be a string like
new HMask[4];
^this..

Thanks man, i learned something xD
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)