SA-MP Forums Archive
GetPlayerInfo Function - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: GetPlayerInfo Function (/showthread.php?tid=232214)



GetPlayerInfo Function - Antonio [G-RP] - 27.02.2011

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")



Re: GetPlayerInfo Function - Krx17 - 27.02.2011

Show us your enum for PlayerInfo.


Re: GetPlayerInfo Function - Antonio [G-RP] - 27.02.2011

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];



Respuesta: GetPlayerInfo Function - TheChaoz - 27.02.2011

fail. delete this post


Re: Respuesta: GetPlayerInfo Function - Antonio [G-RP] - 27.02.2011

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.


Re: Respuesta: GetPlayerInfo Function - [L3th4l] - 27.02.2011

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!