Jump to content
  • 0

Cerere Ajutor " Name"


xt3z0ne

Question

Nick:Johnny

Problema:Deci am si eu o problema pe care sincer chiar nu ma pricep so rezolv. Deci am facut din sistemu de coins am facut stunt point si cand am pus sistemu de stunt cu totu in gm imi spune ca  Name este deja si daca modific nu mai mise salveaza nmk...

Erori / warnings:[pawn]

D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(704) : error 021: symbol already defined: "Name"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

[/pawn]

Lini/script:[pawn]    new Name[MAX_PLAYER_NAME],Ip[16]; GetPlayerName(playerid,Name,sizeof(Name)); GetPlayerIp(playerid,Ip,sizeof(Ip)); format(file,sizeof(file),PlayerFile,Name);

if(!dini_Exists(file)) {

    dini_Create(file);

dini_IntSet(file,"GoldCoins:", PlayerInfo[playerid][GoldCoins]);

}

PlayerInfo[playerid][GoldCoins] = dini_Int(file,"GoldCoins:");[/pawn]

Iar la stunt am

[pawn]new stun[100],Name[MAX_PLAYER_NAME],Ip[16]; GetPlayerName(playerid,Name,sizeof(Name)); GetPlayerIp(playerid,Ip,sizeof(Ip)); format(stun,sizeof(stun),PlayerStun,Name);

if(!dini_Exists(stun)) {

    dini_Create(stun);

dini_IntSet(stun,"StuntPoint:", pInfo[playerid][stuntPoint]);

}

pInfo[playerid][stuntPoint] = dini_Int(stun,"StuntPoint:");[/pawn]

Ai incercat sa rezolvi singur ?:Va rog o rezolvare:(

Sunt un retardat

Link to comment
Share on other sites

11 answers to this question

Recommended Posts

Am impresia ca iti bati joc, chiar nu stii nimic... pui pentru orice, sunt sigur ca nici macar nu ai incercat sa rezolvi singur problema.

CTRL + F in pawno si cauta #define name, si sterge-l. Este definit de doua ori, este normal sa iti dea eroare.

Link to comment
Share on other sites

Vai chiar esti praff nam nici un define name problema este dela ce ti-am dat eu mai sus si nu mai posta duar sa te afli in treaba ca habar nai. problema este de aici

 new Name [ MAX_PLAYER_NAME ] ,Ip [ 16 ];

In primu' rand , nu mai vorbi asa macar incearca sa te ajute chiar daca stie sau nu.

In al 2-lea rand , este definit "Name" cu new Name; sau new Name[MAX_PLAYERS]; sau new Name[MAX_PLAYERS][Enum] ( ultima versiunea este cam penibila , da' orice este posibil ).

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

inlocuieste in loc de name pune pName

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.