GetPlayerInfo Function
#1

This here is a function I created in an attempt to make my life a little bit easier.

It in fact, did not.

pawn Код:
stock GetPlayerInfo(playerid, stat[])
{
    new result[256];
    mempcy(result, PlayerInfo[playerid][stat], 0, 108);
    return result;
}
ERROR:

Код:
error 033: array must be indexed (variable "stat")
Reply
#2

Show us your enum for PlayerInfo.
Reply
#3

Alright?

pawn Код:
enum pInfo
{
    pUsername[32],
    pSQLid,
    pPassword[145],
    pLevel,
    pAdmin,
    pCash,
    pBank,
    pSkin,
    pSex,
    pAge,
    Float:pPos_x,
    Float:pPos_y,
    Float:pPos_z,
    pInt,
    pFaction,
    pRank,
    pMask,
    pPhone,
    pMuted,
    pWarns,
    pPayday,
    pInBiz,
    pInHouse,
    pDuty,
    pDutySkin,
    pCuffed,
    pCuffTime,
    pJailed,
    pJailTime,
    pJob,
    Float:pHealth,
    Float:pArmour,
    pJobContract,
    pPaydayTime
}
new PlayerInfo[MAX_PLAYERS][pInfo];
Reply
#4

fail. delete this post
Reply
#5

Quote:
Originally Posted by the_chaoz
Посмотреть сообщение
fail. delete this post
Hey troll, go suck your moms cock. I didn't ask for you to post.
Reply
#6

Quote:
Originally Posted by Antonio [G-RP]
Посмотреть сообщение
Hey troll, go suck your moms cock. I didn't ask for you to post.
Pathetic immature kid. Learn to tell the difference between a "Post" and a "Thread".
He meant his own POST btw!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)