C:\Users\carlo\Desktop\SA-MP Server\RolePlay\gamemodes\SATDM_v11.pwn(9378) : error 021: symbol already defined: "string"
C:\Users\carlo\Desktop\SA-MP Server\RolePlay\gamemodes\SATDM_v11.pwn(9379) : error 035: argument type mismatch (argument 2)
new string[182], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,Name,MAX_PLAYER_NAME);
format(string,sizeof string, "{FF0000}[JOIN]: %s {FFFF00}|{800080}[ID]:%d {FFFF00}|{90EE90}[Country]: %s {FFFF00}| {FFFFFF}[IP]: %s ", PlayerName,playerid,GetPlayerCountryName(playerid),GetPlayerIp(playerid));
SendClientMessageToAll(red, string);
//change this
new string[182], pName[MAX_PLAYER_NAME];
//to this
new string1[182], Name[MAX_PLAYER_NAME;]
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,sizeof(pName));
format(string,sizeof string, "{FF0000}[JOIN]: %s {FFFF00}|{800080}[ID]:%d {FFFF00}|{90EE90}[Country]: %s {FFFF00}| {FFFFFF}[IP]: %s ", PlayerName,playerid,GetPlayerCountryName(playerid),GetPlayerIp(playerid));
SendClientMessageToAll(red, string);
pawn Код:
|
new string1[182], Name[MAX_PLAYER_NAME;]
new szStr[ 128 ], pIP[ 16 ], pName[ MAX_PLAYER_NAME ];
GetPlayerName( playerid, pName, MAX_PLAYER_NAME );
GetPlayerIp( playerid, pIP, sizeof( pIP ) );
format( szStr, sizeof( szStr ), "{FF0000}[JOIN]: %s {FFFF00}|{800080}[ID]:%d {FFFF00}|{90EE90}[Country]: %s {FFFF00}| {FFFFFF}[IP]: %s ", pName, playerid, GetPlayerCountryName( playerid ), pIP );
SendClientMessageToAll( red, szStr );