Jump to content
  • 0

pomoc Errory


Lerry

Dotaz

Zdravím potřeboval bych vedět proč mě ho háže chyby

 

 

C:\Users\Spravce\Desktop\mexico.pwn(545) : error 017: undefined symbol "Player"

C:\Users\Spravce\Desktop\mexico.pwn(545) : warning 215: expression has no effect

C:\Users\Spravce\Desktop\mexico.pwn(545) : error 001: expected token: ";", but found "]"

C:\Users\Spravce\Desktop\mexico.pwn(545) : error 029: invalid expression, assumed zero

C:\Users\Spravce\Desktop\mexico.pwn(545) : fatal error 107: too many error messages on one line

 

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

 

 

4 Errors.

 

Řádky

new Save_ID = Player[playerid][saveID];

vím že je to nějaká blbost a budete sem psat že su deb*l a atd... to si nechte pro sebe

 

 

A ještě bych potřeboval setlvl na 3 lvly pls help

Link to comment
Share on other sites

6 odpovědí na tuto otázku

Recommended Posts

  • 0

Neviem isto ale skús tam dať niekde do módu/fs (ja to mám úplne dole) toto:

 

stock Player(playerid){

new name[MAX_PLAYER_NAME];

GetPlayerName(playerid,name,MAX_PLAYER_NAME);

return name;

}

(tam kde je name/Name neviem isto či nemáš dať Player ale to neviem podla toho ak ti to nebude hádzať errory a bude to funkčné tak to je jedno :d)

 

Ak to mám zle tak sorry :d ja som v pawne len začiatočník ale ja som mal takýto príkaz :

 

new string[128];

format(string,128," * {FFFFFF} Hráč{FF0000} %s {FFFFFF}prišiel na server.",PlayerName(playerid));

SendClientMessageToAll(COLOR_SERVER,str);

A neukazovalo meno hráča lebo som to nemal dole... a teraz to ide :d

Link to comment
Share on other sites

  • 0

to mám takto

 

if(listitem == 2) {

new Save_ID = Player[playerid][saveID];

if(!IsPlayerConnected(Save_ID)) return SendClientMessage(playerid,C_WARNING,"Hráč se medzitím odpojil !");

else if(IsPlayerConnected(Save_ID)) {

KillPlayer(Save_ID);

new Name[24];

GetPlayerName(playerid,Name,24);

new Name2[24];

GetPlayerName(Save_ID,Name2,24);

new MSG1[128];

new MSG2[128];

format(MSG1,128,"Zabil si hráče %s",Name2);

format(MSG2,128,"Administrátor %s tě zabil !",Name);

SendClientMessage(playerid,C_ADMIN,MSG1);

SendClientMessage(Save_ID,C_ADMIN,MSG2);

}

}

Link to comment
Share on other sites

  • 0

Zkus:

 

new Player; //Nahoru

 

Doufám že to opravdu bude fungovat :d Ale myslím si že ano, přinejhorším zkusím dál.

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