Jump to content
  • 0

cum rezolv erorile


Guest mihai97

Question

Guest mihai97

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

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
Guest mihai97

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

Link to comment
Share on other sites

  • 0

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

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.