Please Help - 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: Please Help (
/showthread.php?tid=117587)
Please Help -
rs2fun111 - 31.12.2009
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);
Re: Please Help -
rs2fun111 - 31.12.2009
cmon help please
Re: Please Help -
Hiitch - 31.12.2009
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.
Re: Please Help -
rs2fun111 - 31.12.2009
sorry
and thanks