Some Thing Wrong - 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)
+--- Thread: Some Thing Wrong (
/showthread.php?tid=385135)
Some Thing Wrong -
Windrush - 14.10.2012
pawn Код:
#define TXT_PlayerJoinedServer "{FF0000}[JOIN]: %s {FFFF00}| {00FF00}[ID]:%d {FFFF00} | {90EE90}[Country]: %s {FFFF00} | {FFFFFF}[IP]: %s"
pawn Код:
format(NewPlayerMsg, 128, TXT_PlayerJoinedServer, Name, playerid, GetPlayerCountryName(playerid), GetPlayerIp(playerid));
SendClientMessageToAll(0xFFFFFFFF, NewPlayerMsg);
pawn Код:
C:\Users\carlo\Desktop\SA-MP Server\trucking\gamemodes\PPC_Trucking.pwn(141) : warning 202: number of arguments does not match definition
C:\Users\carlo\Desktop\SA-MP Server\trucking\gamemodes\PPC_Trucking.pwn(141) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.
Re: Some Thing Wrong -
lorizz - 14.10.2012
Код:
public OnPlayerConnect(playerid)
{
new ID;
new str[128];
new pn[MAX_PLAYER_NAME];
GetPlayerName(ID, pn, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s has joined the server", pn);
SendClientMessageToAll(0x00FF00AA, str);
return 1;
}