24.01.2018, 16:13
(
Последний раз редактировалось Jelly23; 02.02.2018 в 07:05.
)
Quote:
Tentei fazer um SetPlayerNameForPlayer, fiz correto?
Код:
stock SetPlayerNameForPlayer(playerid, toplayerid, name[]) { new BitStream:bs = BS_New(); BS_WriteValue( bs, PR_UINT16, playerid, PR_UINT16, sizeof(name), PR_STRING, name, ); BS_RPC(bs, toplayerid, 11, PR_LOW_PRIORITY, PR_RELIABLE_ORDERED); BS_Delete(bs); return 1; } |
PHP код:
SetPlayerNameForPlayer(playerid, toplayerid, name[])
{
new BitStream:bs = BS_New(), size = strlen(name);
BS_WriteValue(
bs,
PR_UINT16, playerid,
PR_UINT8, size,
PR_STRING, name
);
BS_RPC(bs, toplayerid, 11);
BS_Delete(bs);
return 1;
}