Jump to content
  • 0

pomoc problem s dcmd SURNEE


Guest poblib

Dotaz

dcmd_mute(playerid, params[])

{

new giveplayerid = strval(params), string[256];

if (!strlen(params)) return SendClientMessage(playerid, 0xAFAFAFAA, "[ Info ] Použitie: /mute [playerid]");

else if(admin[playerid] !> 0) return SendClientMessage(playerid, 0xAFAFAFAA, "[ Info ] Toto sú iba Admin [ level 1-5 ] príkazy.");

else if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, 0xAFAFAFAA, "[ Info ] Tento hrac nieje online.");

else if(playerid == giveplayerid) return SendClientMessage(playerid, 0xAFAFAFAA, "[ Info ] To chces umlcat sam seba>?");

format(string, sizeof(string), "[ Info ] Administrator %s umlcal hraca %s", PlayerName(playerid), PlayerName(giveplayerid));

SendClientMessageToAll(0xE10000AA, string); mute[giveplayerid]=1;

return true;

}

 

 

problem nastava pri kompilacii>

C:\DOCUME~1\MULTIM~1\Desktop\kk\HH\HH\III.pwn(294) : error 001: expected token: ")", but found "!"

C:\DOCUME~1\MULTIM~1\Desktop\kk\HH\HH\III.pwn(294) : error 029: invalid expression, assumed zero

C:\DOCUME~1\MULTIM~1\Desktop\kk\HH\HH\III.pwn(294) : warning 215: expression has no effect

C:\DOCUME~1\MULTIM~1\Desktop\kk\HH\HH\III.pwn(294) : error 001: expected token: ";", but found ")"

C:\DOCUME~1\MULTIM~1\Desktop\kk\HH\HH\III.pwn(294) : fatal error 107: too many error messages on one line

 

 

 

lenze tam zadna chyba nieje"""""""""""""""""a ked zmazem tento dcmd hodi sa mi to na dalsi dcmd

Link to comment
Share on other sites

4 odpovědí na tuto otázku

Recommended Posts

  • 0

dcmd_mute(playerid, params[])
{
new giveplayerid = strval(params), string[256];
if (!strlen(params)) return SendClientMessage(playerid, 0xAFAFAFAA, "[ Info ] Použitie: /mute [playerid]");
else if(admin[playerid] < 0) return SendClientMessage(playerid, 0xAFAFAFAA, "[ Info ] Toto sú iba Admin [ level 1-5 ] príkazy.");
else if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, 0xAFAFAFAA, "[ Info ] Tento hrac nieje online.");
else if(playerid == giveplayerid) return SendClientMessage(playerid, 0xAFAFAFAA, "[ Info ] To chces umlcat sam seba>?");
format(string, sizeof(string), "[ Info ] Administrator %s umlcal hraca %s", PlayerName(playerid), PlayerName(giveplayerid));
SendClientMessageToAll(0xE10000AA, string); mute[giveplayerid]=1;
return true;
}

 

 

DRIFTY taky napsal dobre :thumbup:

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...