Jump to content
  • 0

pomoc 1 Error v prikaze /healall len pre RCON


trick

Dotaz

pls mam problem.Uz v pawne niesom az taký zaciatocnik ale na toto zaboha nwm prijst

podla mna to bude zo zatvorkama alebo returny?Fakt nwm pomozete mi??

Tak pise mi tento error:

 

C:\Documents and Settings\Packar Bell\Plocha\_gS\_gS.pwn(737) : error 029: invalid expression, assumed zero

 

 

a ten prikaz so vsetkyj mam takto:

 

//---------------------------------------------//healall pre RCON

if(strcmp(cmdtext, "/healall", true) == 0)

{

if(IsPlayerAdmin(playerid))

{

for(new i = 0; i < MAX_PLAYERS; i++)

{

SetPlayerHealth(i, 100);

}

 

for(new i = 0; i < MAX_PLAYERS; i++)

 

SendClientMessage(playerid,COLOR_CYAN,"Doplnil si kazdemu HEALTH !");

 

else

{

 

return SendClientMessage(playerid,COLOR_CERVENA,"Musís být admin.");

}

}

return 1;

}

 

//-----------------------------------------------

 

predom dakuejm pawnári :d

Link to comment
Share on other sites

4 odpovědí na tuto otázku

Recommended Posts

  • 0

Dej si to do modu takhle:

 

 

//---------------------------------------------//healall pre RCON

if(strcmp(cmdtext, "/healall", true) == 0)

{

if(IsPlayerAdmin(playerid))

{

for(new i = 0; i <= GetMaxPlayers(); i++)

{

if(IsPlayerConnected(i))

{

SetPlayerHealth(i, 100.0);

}

}

 

SendClientMessage(playerid,COLOR_CYAN,"Doplnil si kazdemu HEALTH !");

}

else

{

SendClientMessage(playerid,COLOR_CERVENA,"Musís být admin.");

}

return 1;

}

 

//-----------------------------------------------

 

 

Mělo by to jít.. ale stejně lepší by to bylo přes dcmd :d

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...