SA-MP Forums Archive
Please Help Me :'( - 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: Please Help Me :'( (/showthread.php?tid=378332)



Please Help Me :'( - Windrush - 17.09.2012

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


AW: Please Help Me :'( - BiosMarcel - 17.09.2012

new name[MAX_PLAYER_NAME];

GetPlayerName(playerid,name,sizeof(name));


Re: Please Help Me :'( - newbienoob - 17.09.2012

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"


Re: Please Help Me :'( - TaLhA XIV - 17.09.2012

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.


Re: Please Help Me :'( - Windrush - 17.09.2012

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


Re: Please Help Me :'( - FalconX - 17.09.2012

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.