Jump to content

Vip učet /setvip /setvipoff


Gabik

Recommended Posts

nejde to

C:\Documents and Settings\killer\Desktop\xD.pwn(34) : warning 203: symbol is never used: "dcmd_setvip"
C:\Documents and Settings\Killer\Desktop\xD.pwn(34) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Link to comment
Share on other sites

Prosím co s tím? háže mi to errory. =(

 

H:\Pro Pawno\lvdm.pwn(106) : error 001: expected token: "]", but found ")"
H:\Pro Pawno\lvdm.pwn(106) : error 029: invalid expression, assumed zero
H:\Pro Pawno\lvdm.pwn(106) : error 017: undefined symbol "dUserINT"
H:\Pro Pawno\lvdm.pwn(106) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

Link to comment
Share on other sites

  • 4 weeks later...

pls pomoc s warningami

 

C:\DOCUME~1\RASTO5~1\MYDOCU~1\rlznn.pwn(2534) : warning 219: local variable "id" shadows a variable at a preceding level
C:\DOCUME~1\RASTO5~1\MYDOCU~1\rlznn.pwn(2534) : warning 204: symbol is assigned a value that is never used: "id"
C:\DOCUME~1\RASTO5~1\MYDOCU~1\rlznn.pwn(2534 -- 2551) : warning 219: local variable "id" shadows a variable at a preceding level
C:\DOCUME~1\RASTO5~1\MYDOCU~1\rlznn.pwn(2551) : warning 204: symbol is assigned a value that is never used: "id"[code]

Link to comment
Share on other sites

A řádky si mam vycucat z prstu ?

nn

2534 new id = strval(params);

2535 new string[256];

2536 if (!strlen(params)) return SendClientMessage(playerid, COLOR_RED, "Použi: / setvip id");

else if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_RED, "Toto id není pripojené!");

else if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "Nesi Rcon Admin"); // To si změnte na proměnu svého povolání;

else {

Link to comment
Share on other sites

  • 3 weeks later...

prominte ze pisu do "old topic" skousel sem to, ale nejak to nefungovalo jako slo to bez errors, ale kdyz jsem dal ten vip nekomu jinemu tak mu prikazy nesli (ktere byly s podminkou) slo to jen kdyz sem to dal sobe diky...

Link to comment
Share on other sites

  • 1 month later...
Guest Airsoft3r
Furt mi to pise error undefined symbol PlayerName....pls ako to mam opravit?

stock PlayerName(playerid)
{
new name[255];
GetPlayerName(playerid, name, 255);
return name;
}

 

diky moc jde mi to! :) fakt dik

Link to comment
Share on other sites

  • 2 weeks later...

PLS HELP S ERORMY C:\Documents and Settings\PC\Plocha\pawno\include\dutils.inc(28) : warning 219: local variable "string" shadows a variable at a preceding level

C:\Documents and Settings\PC\Plocha\pawno\include\dutils.inc(132) : warning 219: local variable "string" shadows a variable at a preceding level

C:\Documents and Settings\PC\Plocha\pawno\include\dutils.inc(172) : warning 219: local variable "string" shadows a variable at a preceding level

C:\Documents and Settings\PC\Plocha\pawno\include\dutils.inc(267) : warning 219: local variable "string" shadows a variable at a preceding level

C:\Documents and Settings\PC\Plocha\pawno\include\dutils.inc(324) : warning 219: local variable "string" shadows a variable at a preceding level

C:\Documents and Settings\PC\Plocha\pawno\include\dutils.inc(366) : warning 219: local variable "string" shadows a variable at a preceding level

C:\Documents and Settings\PC\Plocha\WWE.pwn(273) : warning 219: local variable "string" shadows a variable at a preceding level

C:\Documents and Settings\PC\Plocha\WWE.pwn(311) : warning 219: local variable "string" shadows a variable at a preceding level

C:\Documents and Settings\PC\Plocha\WWE.pwn(448) : error 010: invalid function or declaration

C:\Documents and Settings\PC\Plocha\WWE.pwn(451) : error 010: invalid function or declaration

C:\Documents and Settings\PC\Plocha\WWE.pwn(452) : error 010: invalid function or declaration

C:\Documents and Settings\PC\Plocha\WWE.pwn(454) : error 010: invalid function or declaration

C:\Documents and Settings\PC\Plocha\WWE.pwn(454 -- 456) : error 021: symbol already defined: "GetPlayerHealth"

C:\Documents and Settings\PC\Plocha\WWE.pwn(454 -- 459) : error 054: unmatched closing brace ("}")

C:\Documents and Settings\PC\Plocha\WWE.pwn(454 -- 459) : fatal error 107: too many error messages on one line

 

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

 

 

7 Errors.

Link to comment
Share on other sites

C:\Documents and Settings\PC\Plocha\WWE.pwn(454 -- 456) : error 021: symbol already defined: "GetPlayerHealth"
C:\Documents and Settings\PC\Plocha\WWE.pwn(454 -- 459) : error 054: unmatched closing brace ("}")

 

prvy ten error co ti pise mas nadefinovany symbol GetPlayerHealth a druhy ten error je ze nemas uzavrete nieco s toutuo zatvorkou }

Link to comment
Share on other sites

  • 3 weeks later...
Tak davam vám tu Tutorial moj prvý tak ma nezdrbte hned :d ok tak idem nato.

 

Hore medzi new:

new Vip[MAX_PLAYERS];

 

A teraz na prikazy /setvip id /setvipoff id

 

Do public OnPlayerCommandText(playerid, cmdtext[]) si dáme:

dcmd(setvipoff,9,cmdtext);
dcmd(setvip,6,cmdtext);

 

Potom niekde do modu to je jedno najlepsie na koniec:

 

dcmd_setvip(playerid,params[])
{
new id = strval(params);
new string[256];
if (!strlen(params)) return SendClientMessage(playerid,  COLOR_RED, "Použi: /setvip id");
else if(!IsPlayerConnected(id)) return SendClientMessage(playerid,  COLOR_RED, "Toto id není pripojené!");
else if(!IsPlayerAdmin(playerid)) return  SendClientMessage(playerid,  COLOR_RED, "Nesi Rcon Admin"); // To si změnte na proměnu svého povolání;
else {
{
format(string, sizeof(string), "Hl.Admin %s dal Vip Učet hračovi %s !", PlayerName(playerid), PlayerName(id));
SendClientMessageToAll(COLOR_YELLOW, string);
Vip[id] = 1;
}
}
return 1;
}

dcmd_setvipoff(playerid,params[])
{
new id = strval(params);
new string[256];
if (!strlen(params)) return SendClientMessage(playerid,  COLOR_WHITE, "Použi: /setvipoff id");
else if(!IsPlayerConnected(id)) return SendClientMessage(playerid,  COLOR_WHITE, "Toto id není pripojené!");
else if(!IsPlayerAdmin(playerid)) return  SendClientMessage(playerid,  COLOR_WHITE, "Nesi Rcon Admin");
else {
{
format(string, sizeof(string), "Hl.Admin %s odobral Vip Učet hračovi %s !", PlayerName(playerid), PlayerName(id));
SendClientMessageToAll(COLOR_SYSTEM, string);
Vip[id] = 0;
}
}
return 1;
}

 

 

Ak chcete aby sa vam to ukladalo tak do disconnect:

dUserSetINT(PlayerName(playerid)).("Vip ucet",Vip[playerid]);

 

A do loginu:

 

Vip[playerid]=dUserINT(PlayerName(playerid)).("Vip ucet");

 

Tak to je asi všetko pysal som to z hlavy ziadny copy :d . Tak a potom si uz robte nejake prikazy pre vip ale nezabudite na podmienku if(Vip[playerid]==1) :thumbup:

 

 

Zdravim,

mam dve chyby.

C:\Documents and Settings\Vlastník\Plocha\nevim2.pwn(1295) : error 010: invalid function or declaration

C:\Documents and Settings\Vlastník\Plocha\nevim2.pwn(1296) : error 010: invalid function or declaration

 

Radky:

1295: dcmd(setvipoff,9,cmdtext);

1296: dcmd(setvip,6,cmdtext);

Link to comment
Share on other sites

  • 6 months later...
Guest [BJ]boban88
dobry tut pouzil jsem ho k tomu aby si mi ukladali vip na servru D: ale faj vypada dobre

omg uz prestan spamovat neotvaraj stare topiky bud normalny konecne a precitaj si PRAVIDLA !!!!!!!!!!!!!!!!!

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