Please Help Me :'(
#1

pawn Код:
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)
pawn Код:
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);
This is My problem
I Follow This Instruction In Wiki I edit also
Wiki Sa-mp OnPlayerConnect

Rep ++ For Those Who Help Me
Reply
#2

new name[MAX_PLAYER_NAME];

GetPlayerName(playerid,name,sizeof(name));
Reply
#3

pawn Код:
//change this
new string[182], pName[MAX_PLAYER_NAME];
//to this
new string1[182], Name[MAX_PLAYER_NAME;]
And you need to change all "string" to "string1"
Reply
#4

pawn Код:
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);
Try this.
Reply
#5

Quote:
Originally Posted by newbienoob
Посмотреть сообщение
pawn Код:
//change this
new string[182], pName[MAX_PLAYER_NAME];
//to this
new string1[182], Name[MAX_PLAYER_NAME;]
And you need to change all "string" to "string1"
pawn Код:
new string1[182], Name[MAX_PLAYER_NAME;]
im sure i will have gonna error of this
Reply
#6

pawn Код:
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 );
Edit: Ow, I am too late, nvm.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)