Please Help
#1

i use Sandra Rank System And I have problem with welcome message , how i can make message what says "VETERAN Kalvi Has Joined To Server"

i tryd that code but it says nothing .

Код:
public OnPlayerSpawn(playerid)
{
  new str1[128];
	new PR = PInfo[playerid][Rank];
	new weap[32];
	GetWeaponName(RankInfo[PR][RSpawnWeapon], weap, 32);
	format(str1, 128, "\"%s\" %s Has Joined To Server", PR, RankInfo[PR][RName]);
	SendClientMessage(playerid, 0x7CFC00AA, str1);
Reply
#2

cmon help please
Reply
#3

1st. Dont bump the topic within 12 hours of posting if nobody replied.

2nd.

pawn Код:
public OnPlayerSpawn(playerid)
{
  new
      str1[128],
      PR = PInfo[playerid][Rank],
      weap[32],
      pName[24];
     
    GetPlayerName(playerid, pName, 24);
    GetWeaponName(RankInfo[PR][RSpawnWeapon], weap, 32);
    format(str1, 128, "\"%s\" %s Has Joined To Server", PR, pName);
    SendClientMessage(playerid, 0x7CFC00AA, str1);
There, that should work, and the code is tidied up.

Note: See how there are commas after each declared variable? This means that you can use 'new' to declare many variables, im not sure if there is a certain amount of vars you can declare in 1 'new' statement though.
Reply
#4

sorry

and thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)