// On top of script:
new Text:joinmsg;
// In OnGameModeInit
joinmsg = TextDrawCreate(506 ,330 , "Join:");
TextDrawFont(joinmsg , 3);
TextDrawLetterSize(joinmsg , .4, 2.8000000000000003);
TextDrawColor(joinmsg , 0x187836FF);
TextDrawSetOutline(joinmsg , false);
TextDrawSetProportional(joinmsg , true);
TextDrawSetShadow(joinmsg , 1);
public OnPlayerConnect(playerid)
{
new rope[128];
GetPlayerName(playerid,nAme,sizeof(nAme));
format(rope,sizeof(rope),"Join: %s",nAme);
TextDrawSetString(joinmsg,String);
TextDrawShowForAll(joinmsg);
return 1;
}
public OnPlayerConnect(playerid)
{
new string[30],name[24];
GetPlayerName(playerid, name,sizeof(name));
format(string,sizeof(string),"Join: %s", name);
TextDrawSetString(joinmsg,string);
TextDrawShowForAll(joinmsg);
}
public OnPlayerConnect(playerid)
{
new rope[30],nAme[24];//There's a chance he already has "string" and or "name"; So he'll get errors...
GetPlayerName(playerid,nAme,sizeof(nAme));
format(rope,sizeof(rope),"Join: %s",nAme);
TextDrawSetString(joinmsg,rope);
TextDrawShowForAll(joinmsg);
return 1;
}
|
There's a chance he already has "string" and or "name"; So he'll get errors...
|
.
(254) : error 001: expected token: "-identifier-", but found "-integer value-"
(254) : warning 215: expression has no effect
(254) : warning 215: expression has no effect
(254) : error 001: expected token: ";", but found ")"
(254) : error 029: invalid expression, assumed zero
(254) : fatal error 107: too many error messages on one line
TextDrawLetterSize(joinmsg , .4, 2.8000000000000003);
TextDrawLetterSize(joinmsg , .4, 2.8000000000000003);
TextDrawLetterSize(Text:text, Float: x, Float:y);
TextDrawLetterSize(joinmsg , .4, 2.8000000000000003);
TextDrawLetterSize(joinmsg , 0.4, 2.8000000000000003);