Jump to content
  • 0

Problema Comanda God


DvDGolL

Question

Problemă întâlnită (descriere): Salut.... am creat un sistem de godmode si imi da o eroare ... la linia If IsPlayerAdmin
Ero(area / rile) / warning-(ul / urile): error 035: argument type mismatch (argument 2)
Liniile de cod / sursa / script-ul: linia 135, scriptul meu
Imagini / Video (optional): Aveti poze cu scriptul si eroarea  :

1 (Eroarea):  http://www11.zippyshare.com/v/72484781/file.html

2(Scriptul):   http://www10.zippyshare.com/v/20941955/file.html

Aţi încercat să rezolvaţi singur?: Am incercat sa caut eroarea pe google dar nu prea am reusit sa gasesc ceva sa o rezolv

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Posteaza linia aici,nu fa poza.

 

Poftim, imi da eroarea Argument la linia asta cu if (IsPlayerAdmin(playerid)) [pawn] if (strcmp("/god", cmdtext, true)==0)

{

{

if (IsPlayerAdmin(playerid)) return SendClientMessage ( - 1, "Ai nevoie de admin Level 1 pentru aceasta comanda");

{

new name[MAX_PLAYER_NAME], strg[900];

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

format(strg,sizeof(strg),"{FFCF0F}(Adminul) %s a activat God Mode",name);

SendClientMessageToAll(0xC4C4C4FF, strg);

SetPlayerHealth(playerid,999999999);

SetPlayerArmour(playerid,999999999);

}

}

return 1;[/pawn]

Link to comment
Share on other sites

Exact cum spunea si Gireada , la SendClientMessage(...); ai uitat sa pui playerid, inaintea lu -1.

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.