SendClientMessageToAll(0x33AA33AA, "playersnamehere has just stole a hobo's couch!");
new pname[24], string[128]; GetPlayerName(playerid, pname, sizeof(pname); format(string, sizeof(string), "%s has just stole a couch!", pname);
SendClientMessageToAll(<color>, string);
C:\Documents and Settings\Chris\Desktop\Stunt City\gamemodes\NewServer.pwn(543) : error 001: expected token: ",", but found ";" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
if (pickupid == skate)
{
new pname[24], string[128];
format(string, sizeof(string), "%s has just stole a hobo's couch!", pname);
GetPlayerName(playerid, pname, sizeof(pname);
SendClientMessageToAll(0x33AA33AA, string);
SendClientMessage(playerid, 0xFFA500AA, "Look on the bright side, you sold the couch on eBay for $400");
GivePlayerMoney(playerid, 400);
SetPlayerWantedLevel(playerid, 3);
GameTextForPlayer(playerid,"Couch Theif",5000,3);
}
new string[128], adminname[MAX_PLAYER_NAME];
GetPlayerName(playerid,adminname,sizeof(adminname));
format(string, sizeof(string), "%s has just stole a hobo's couch!",adminname);
SendClientMessageToAll(0x33AA33AA, string);
new pname[24], string[128];
format(string, sizeof(string), "%s has just stole a hobo's couch!", pname);
GetPlayerName(playerid, pname, sizeof(pname);
|
Originally Posted by [mad
MLK ]
hmm still dosent show the name |
|
Originally Posted by 0rb
Look carefully these lines:
pawn Код:
|
new pname[24], string[128];
GetPlayerName(playerid, pname, sizeof(pname);
format(string, sizeof(string), "%s has just stole a hobo's couch!", pname);