Jump to content
  • 0

cum rezolv erorile


Guest mihai97

Question

Guest mihai97
Posted

cum rezolv erorile de la compilare:

error 055: start of function body without function header

si

error 010: invalid function or declaration

?

am scris #pragma tabsize 0 deasupra la OnPlayerCommandText dar nu merge

3 answers to this question

Recommended Posts

  • 0
  • Administrator
Posted

Posteaza liniile la care iti da eroare sa le vedem.

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

  • 0
Guest mihai97
Posted

la comenzi imi da erorile si uite comenzile:

public OnGameModeExit();
{
return 1;
}

public OnPlayerConnected();
{
SendPlayerMessageTooAll (COLOR_Red, "%d a intrat pe server");
return 1;
}

mai bine pun toate randurile:

http://up.delux-host.com/?f=2927

public OnPlayerDisconnected();
{
SendClientMessageToAll(COLOR_Red, "%d a iesit de pe server");
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[]);
{
#pragma tabsize 0

if(strcmp(cmdtext, "/kill", true) == 0)
{
SetPlayerHealth(playerid, 0);
SendClientMessageToAll(COLOR_Red, "%d sa sinucis (folosind /kill)  !!!!!");
return 1;
}

if(strcmp(cmdtext, "/good", true) == 0)
{
SetPlayerHealth(playerid, 9999999);
SetPlayerArmor(playerid, 9999999);
SendClientMessageToAll(COLOR_Red, "%d a folosit comanda /good pentru a avea viata infinita si armura");
return 1;
}
return 0;
}
iar astes zonele cu erori:
public OnGameModeExit();
{
return 1;
}

public OnPlayerConnected();
{
SendPlayerMessageTooAll (COLOR_Red, "%d a intrat pe server");
return 1;
}

if(strcmp(cmdtext, "/kill", true) == 0)
{
SetPlayerHealth(playerid, 0);
SendClientMessageToAll(COLOR_Red, "%d sa sinucis (folosind /kill)  !!!!!");
return 1;
}

if(strcmp(cmdtext, "/good", true) == 0)
{
SetPlayerHealth(playerid, 9999999);
SetPlayerArmor(playerid, 9999999);
SendClientMessageToAll(COLOR_Red, "%d a folosit comanda /good pentru a avea viata infinita si armura");
return 1;
}
return 0;
}

adica toate comenzile au erori

mai bine pun toate randurile:

http://up.delux-host.com/?f=2927

  • 0
Posted

Sterge liniile:

SendClientMessageToAll(COLOR_Red, "%d sa sinucis (folosind /kill)  !!!!!");

SendClientMessageToAll(COLOR_Red, "%d a folosit comanda /good pentru a avea viata infinita si armura");

SendClientMessageToAll(COLOR_Red, "%d a iesit de pe server"); // uitate pe wiki.sa-mp.com

SendPlayerMessageTooAll (COLOR_Red, "%d a intrat pe server"); // uitate pe wiki.sa-mp.com

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.