Params in OnPlayerConnect
#1

Hello,
Can i have in public OnPlayerConnect params ? or FilterScriptInit
Reply
#2

And then how to create 3D text label gang?

Код:
stock LoadPlayer3DText(playerid, params[])
{
	for(new i = 0; i < MAX_GANGS; i++)
	{
			new string[256];
			new slot = strval(params);
    		format(string, sizeof(string), "{00F000}Gang Name:{FFFFFF}%s\n{00F100}GangId:{FFFFFF}%d\n{00F200}Gang Owner:{FFFFFF}%s\n{00F200}Kills:{FFFFFF}%d\n{00F200}Deaths:{FFFFFF}%d",dini_Get(gFileId(slot),"GangName"),slot,dini_Get(gFile(dini_Get(gFileId(slot),"GangName")),"GangOwner"),GangDat[slot][GangKills],GangDat[slot][GangDeaths]);
    		Create3DTextLabel(string,0x0000BBAA,dini_Float(gFileId(PlayerDat[playerid][GangID]),"Base_X"),dini_Float(gFileId(PlayerDat[playerid][GangID]),"Base_Y"),dini_Float(gFileId(PlayerDat[playerid][GangID]),"Base_Z"),20.0,0,0);
		}
	return 1;
}
?
How to put in public ?
Reply
#3

bump
Reply
#4

under onplayerconnect, Use your stock.
Reply
#5

Код:
warning 202: number of arguments does not match definition
I must have LoadPlayer3DText(playerid, params[]); in public on player connect but when have so warning...
Reply
#6

How many gangs do you have ?
Reply
#7

This is not essential. I must repair error.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)