Some Thing Wrong
#1

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.
Reply
#2

Код:
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;
}
Reply


Forum Jump:


Users browsing this thread: