Jump to content
  • 0

pomoc big lama potrebuje pomoc s register


Guest Oraj

Dotaz

postupoval som podla tohto tut http://www.play-zone.mteam.cz/forum/vie ... hread_id=9" onclick="window.open(this.href);return false;

 

vypisuje:

C:\Users\Tomas\Desktop\pawno\vytvor\Untitled.pwn(76) : error 017: undefined symbol "PLAYERLIST_authed"
C:\Users\Tomas\Desktop\pawno\vytvor\Untitled.pwn(76) : warning 215: expression has no effect
C:\Users\Tomas\Desktop\pawno\vytvor\Untitled.pwn(76) : error 001: expected token: ";", but found "]"
C:\Users\Tomas\Desktop\pawno\vytvor\Untitled.pwn(76) : error 029: invalid expression, assumed zero
C:\Users\Tomas\Desktop\pawno\vytvor\Untitled.pwn(76) : 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.

76 riadok PLAYERLIST_authed[playerid]=false;

pls som lama nemusite to komentovat........... pls co a kde mam dolpnit pripadne vymazat

Link to comment
Share on other sites

Recommended Posts

  • 0

tak momentalne mi to uz pise

C:\Users\Tomas\Desktop\pawno\include\dudb.inc(26) : fatal error 100: cannot read from file: "dini"

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


1 Error.

 

pripadne kde mam chyby

 

#include

#include

#include

 

new PLAYERLIST_authed[MAX_PLAYERS];

#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1

#define COLOR_SYSTEM 0xEFEFF7AA

stock PlayerName(playerid) {

new name[255];

GetPlayerName(playerid, name, 255);

return name;

}

stock SystemMsg(playerid,msg[]) {

if ((IsPlayerConnected(playerid))&&(strlen(msg)>0)) {

SendClientMessage(playerid,COLOR_SYSTEM,msg);

}

return 1;

}

 

main() {

//Message shown in server window

print("Zdravim");

print("[CZ/SK] Skuska"); // gtam.cz

print("Neuveritelná zábava");

}

 

public OnGameModeInit() {

SetGameModeText("Neuveritelna blbost"); //Mode name in server browser

AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);

return 1;

}

 

public OnGameModeExit() {

return 1;

}

 

public OnPlayerRequestClass(playerid, classid) {

SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);

SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);

SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);

return 1;

}

 

public OnPlayerRequestSpawn(playerid) {

return 1;

}

 

public OnPlayerConnect(playerid){

PLAYERLIST_authed[playerid]=false;

return 1;

}

 

 

 

public OnPlayerDisconnect(playerid, reason)

{

if (PLAYERLIST_authed[playerid]) {

// Was loggedin, so save the data!

dUserSetINT(PlayerName(playerid)).("money",GetPlayerMoney(playerid));

dUserSetINT(PlayerName(playerid)).("ridicak",ridicak[playerid]);

dUserSetINT(PlayerName(playerid)).("povolani",iPlayerRole[playerid]);

}

PLAYERLIST_authed[playerid]=false;

 

return false;

}

 

public OnPlayerSpawn(playerid) {

return 1;

}

 

public OnPlayerDeath(playerid, killerid, reason) {

return 1;

}

 

public OnVehicleSpawn(vehicleid) {

return 1;

}

 

public OnVehicleDeath(vehicleid, killerid) {

return 1;

}

 

public OnPlayerText(playerid, text[]) {

return 1;

}

 

public OnPlayerPrivmsg(playerid, recieverid, text[]) {

return 1;

}

 

public OnPlayerCommandText(playerid, cmdtext[]) {

if (strcmp("/cake", cmdtext, true, 5) == 0) {

// User typed /cake

return 1;

}

return 0;

}

 

public OnPlayerInfoChange(playerid) {

return 1;

}

 

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) {

return 1;

}

 

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) {

return 1;

}

 

public OnPlayerExitVehicle(playerid, vehicleid) {

return 1;

}

 

public OnPlayerStateChange(playerid, newstate, oldstate) {

return 1;

}

 

public OnPlayerEnterCheckpoint(playerid) {

return 1;

}

 

public OnPlayerLeaveCheckpoint(playerid) {

return 1;

}

 

public OnPlayerEnterRaceCheckpoint(playerid) {

return 1;

}

 

public OnPlayerLeaveRaceCheckpoint(playerid) {

return 1;

}

 

public OnRconCommand(cmd[]) {

return 1;

}

 

public OnObjectMoved(objectid) {

return 1;

}

 

public OnPlayerObjectMoved(playerid, objectid) {

return 1;

}

 

public OnPlayerPickUpPickup(playerid, pickupid) {

return 1;

}

 

public OnPlayerSelectedMenuRow(playerid, row) {

return 1;

}

 

public OnPlayerExitedMenu(playerid) {

return 1;

}

 

public OnVehicleRespray(vehicleid, color1, color2) {

return 1;

}

 

public OnVehicleMod(vehicleid, componentid) {

return 1;

}

 

/*

* /register password

*

*/

dcmd_register(playerid,params[]) {

 

// The command shouldn't work if we already are authed

if (PLAYERLIST_authed[playerid]) return SystemMsg(playerid,"Already authed.");

 

// The command shouldn't work if an account with this

// nick already exists

if (udb_Exists(PlayerName(playerid))) return SystemMsg(playerid,"Učet už existuje napíš /login heslo.");

 

// Did he forgot the password?

if (strlen(params)==0) return SystemMsg(playerid,"Musíš sa zaregistrovať /register heslo");

 

// We save the money to the accstate

if (udb_Create(PlayerName(playerid),params)) return SystemMsg(playerid,"Učet bol vytvorený, teraz sa prihlás /login heslo.");

return true;

 

}

 

/*

* /login password

*

*/

dcmd_login(playerid,params[]) {

 

// The command shouldn't work if we already are authed

if (PLAYERLIST_authed[playerid]) return SystemMsg(playerid,"Already authed.");

 

// The command shouldn't work if an account with this

// nick does not exists

if (!udb_Exists(PlayerName(playerid))) return SystemMsg(playerid,"Učet neexistuje, použi /register heslo");

 

// Did he forgot the password?

if (strlen(params)==0) return SystemMsg(playerid,"Musíš sa prihlásiť /login heslo");

 

if (udb_CheckLogin(PlayerName(playerid),params)) {

// Login was correct

 

// Following thing is the same like the missing SetPlayerCommand

GivePlayerMoney(playerid,dUserINT(PlayerName(playerid)).("money")-GetPlayerMoney(playerid));

 

PLAYERLIST_authed[playerid]=true;

 

return SystemMsg(playerid,"Si prihlásený!");

}

// Login was incorrect

return SystemMsg(playerid,"Zlé heslo!");

}

 

Link to comment
Share on other sites

  • 0

no dal som ho tam a vyhodilo mi dalsie chyby :d ja som z toho kkt

C:\Users\Tomas\Desktop\pawno\vytvor\Untitled.pwn(60) : error 017: undefined symbol "ridicak"
C:\Users\Tomas\Desktop\pawno\vytvor\Untitled.pwn(60) : warning 215: expression has no effect
C:\Users\Tomas\Desktop\pawno\vytvor\Untitled.pwn(60) : error 001: expected token: ";", but found "]"
C:\Users\Tomas\Desktop\pawno\vytvor\Untitled.pwn(60) : error 029: invalid expression, assumed zero
C:\Users\Tomas\Desktop\pawno\vytvor\Untitled.pwn(60) : 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.

 

ked som vyhodil povolani a ridicak

tak mi vyhodilo

C:\Users\Tomas\Desktop\pawno\vytvor\Untitled.pwn(217) : warning 203: symbol is never used: "dcmd_login"
C:\Users\Tomas\Desktop\pawno\vytvor\Untitled.pwn(217) : warning 203: symbol is never used: "dcmd_register"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.

ked tam budem chcet vodicky tak ho ako nadefinujem ci co s tym ???

Link to comment
Share on other sites

  • 0

Už nwm podle čeho to mam ale přes co to maš ty? myslim že ja to mam podle tutu tady...ale je to jen řidičák na koupení...

 

hledej možna je to v Seznamu navodu zkus http://www.pawno.cz/search.php a najdi "Seznam nav" nebo neco podobnyho :d nebo nekde v Navody to najdeš myslim v 3 stránce...

 

 

Ale já už du...

 

Kdybys to nenašel tak to zkusim najit :-D

 

Good night all!

Link to comment
Share on other sites

  • 0

jediny problem ze mi pise neexistujuci riadok ;)

tu je znova ta chyba

 

C:\Users\Tomas\Desktop\pawno\vytvor\Untitled.pwn(184) : warning 203: symbol is never used: "dcmd_login"

C:\Users\Tomas\Desktop\pawno\vytvor\Untitled.pwn(184) : warning 203: symbol is never used: "dcmd_register"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

 

 

2 Warnings.

 

 

 

 

#include

#include

#include

 

 

new PLAYERLIST_authed[MAX_PLAYERS];

 

#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1

#define COLOR_SYSTEM 0xEFEFF7AA

stock PlayerName(playerid) {

new name[255];

GetPlayerName(playerid, name, 255);

return name;

}

stock SystemMsg(playerid,msg[]) {

if ((IsPlayerConnected(playerid))&&(strlen(msg)>0)) {

SendClientMessage(playerid,COLOR_SYSTEM,msg);

}

return 1;

}

 

main() {

//Message shown in server window

print("Zdravim");

print("[CZ/SK] Skuska"); // gtam.cz

print("Neuveritelná zábava");}

 

public OnGameModeInit() {

SetGameModeText("Neuveritelna blbost"); //Mode name in server browser

AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);

return 1;}

 

public OnGameModeExit() {

return 1;}

 

public OnPlayerRequestClass(playerid, classid) {

SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);

SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);

SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);

return 1;}

 

public OnPlayerRequestSpawn(playerid) {

return 1;}

 

public OnPlayerConnect(playerid){

PLAYERLIST_authed[playerid]=false;

return 1;}

 

public OnPlayerDisconnect(playerid, reason){

if (PLAYERLIST_authed[playerid]) {

// Was loggedin, so save the data!

dUserSetINT(PlayerName(playerid)).("money",GetPlayerMoney(playerid));

}

PLAYERLIST_authed[playerid]=false;

return false;}

 

 

public OnPlayerSpawn(playerid) {

return 1;}

 

public OnPlayerDeath(playerid, killerid, reason) {

return 1;}

 

public OnVehicleSpawn(vehicleid) {

return 1;}

 

public OnVehicleDeath(vehicleid, killerid) {

return 1;}

 

public OnPlayerText(playerid, text[]) {

return 1;}

 

public OnPlayerPrivmsg(playerid, recieverid, text[]) {

return 1;}

 

public OnPlayerCommandText(playerid, cmdtext[]) {

if (strcmp("/cake", cmdtext, true, 5) == 0) {

// User typed /cake

return 1;}

return 0;}

 

public OnPlayerInfoChange(playerid) {

return 1;}

 

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) {

return 1;}

 

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) {

return 1;}

 

public OnPlayerExitVehicle(playerid, vehicleid) {

return 1;}

 

public OnPlayerStateChange(playerid, newstate, oldstate) {

return 1;}

 

public OnPlayerEnterCheckpoint(playerid) {

return 1;}

 

public OnPlayerLeaveCheckpoint(playerid) {

return 1;}

 

public OnPlayerEnterRaceCheckpoint(playerid) {

return 1;}

 

public OnPlayerLeaveRaceCheckpoint(playerid) {

return 1;}

 

public OnRconCommand(cmd[]) {

return 1;}

 

public OnObjectMoved(objectid) {

return 1;}

 

public OnPlayerObjectMoved(playerid, objectid) {

return 1;}

 

public OnPlayerPickUpPickup(playerid, pickupid) {

return 1;}

 

public OnPlayerSelectedMenuRow(playerid, row) {

return 1;}

 

public OnPlayerExitedMenu(playerid) {

return 1;}

 

public OnVehicleRespray(vehicleid, color1, color2) {

return 1;}

 

public OnVehicleMod(vehicleid, componentid) {

return 1;}

/*

* /register password

*

*/

dcmd_register(playerid,params[]) {

 

// The command shouldn't work if we already are authed

if (PLAYERLIST_authed[playerid]) return SystemMsg(playerid,"Already authed.");

 

// The command shouldn't work if an account with this

// nick already exists

if (udb_Exists(PlayerName(playerid))) return SystemMsg(playerid,"Učet už existuje napíš /login heslo.");

 

// Did he forgot the password?

if (strlen(params)==0) return SystemMsg(playerid,"Musíš sa zaregistrovať /register heslo");

 

// We save the money to the accstate

if (udb_Create(PlayerName(playerid),params)) return SystemMsg(playerid,"Učet bol vytvorený, teraz sa prihlás /login heslo.");

return true;

 

}

 

/*

* /login password

*

*/

dcmd_login(playerid,params[]) {

 

// The command shouldn't work if we already are authed

if (PLAYERLIST_authed[playerid]) return SystemMsg(playerid,"Already authed.");

 

// The command shouldn't work if an account with this

// nick does not exists

if (!udb_Exists(PlayerName(playerid))) return SystemMsg(playerid,"Učet neexistuje, použi /register heslo");

 

// Did he forgot the password?

if (strlen(params)==0) return SystemMsg(playerid,"Musíš sa prihlásiť /login heslo");

 

if (udb_CheckLogin(PlayerName(playerid),params)) {

// Login was correct

 

// Following thing is the same like the missing SetPlayerCommand

GivePlayerMoney(playerid,dUserINT(PlayerName(playerid)).("money")-GetPlayerMoney(playerid));

 

PLAYERLIST_authed[playerid]=true;

 

return SystemMsg(playerid,"Si prihlásený!");

}

// Login was incorrect

return SystemMsg(playerid,"Zlé heslo!");

}

 

pls mohol by si mi to tak zpriehladnit aby sa v tom clovek napohlad vyznal ???

Link to comment
Share on other sites

  • 0

tak teraz som si tam dolpnil

public OnPlayerRequestSpawn(playerid)
{
if(PLAYERLIST_authed[playerid])
{
return true;
} else {
48.riado////SendClientMessage(playerid, COLOR_RED, "Nie si prihlásený!!Najskôr sa zaregistruj /register heslo a potom použi /login heslo")onclick="window.open(this.href);return false;");
return false;
}
}

a zavalo to vypisovat

 

C:\Users\Tomas\Desktop\pawno\vytvor\Untitled.pwn(48) : error 001: expected token: ";", but found "-identifier-"

C:\Users\Tomas\Desktop\pawno\vytvor\Untitled.pwn(48) : error 017: undefined symbol "onclick"

C:\Users\Tomas\Desktop\pawno\vytvor\Untitled.pwn(48) : warning 215: expression has no effect

C:\Users\Tomas\Desktop\pawno\vytvor\Untitled.pwn(48) : error 001: expected token: ";", but found ")"

C:\Users\Tomas\Desktop\pawno\vytvor\Untitled.pwn(48) : fatal error 107: too many error messages on one line

 

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

 

 

4 Errors.

 

Link to comment
Share on other sites

  • 0
public OnPlayerRequestSpawn(playerid)

{

if(PLAYERLIST_authed[playerid])

{

return true;

} else {

48.riado////SendClientMessage(playerid, COLOR_RED, "Nie si prihlásený!!Najskôr sa zaregistruj /register heslo a potom použi /login heslo")onclick="window.open(this.href);return false;");

return false;

}

 

:lol::lol: to co ma byt ?

 

/register heslo a potom použi /login heslo")onclick="window.open(this.href);return false; ...nevis cist nebo co :wtf:

Link to comment
Share on other sites

  • 0

tak ja neviem ale pripadalo mi to divne ja som to tu na fore nasiel, skusal som to nejako zmenit ci vynechat ale iba viacej errov s hentym sa trapim 30 minut :d molo by to fungovat tak aby sa musel registrovat

Link to comment
Share on other sites

  • 0
no dal som ho tam a vyhodilo mi dalsie chyby :d ja som z toho kkt

C:\Users\Tomas\Desktop\pawno\vytvor\Untitled.pwn(60) : error 017: undefined symbol "ridicak"
C:\Users\Tomas\Desktop\pawno\vytvor\Untitled.pwn(60) : warning 215: expression has no effect
C:\Users\Tomas\Desktop\pawno\vytvor\Untitled.pwn(60) : error 001: expected token: ";", but found "]"
C:\Users\Tomas\Desktop\pawno\vytvor\Untitled.pwn(60) : error 029: invalid expression, assumed zero
C:\Users\Tomas\Desktop\pawno\vytvor\Untitled.pwn(60) : 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.

 

ked som vyhodil povolani a ridicak

tak mi vyhodilo

C:\Users\Tomas\Desktop\pawno\vytvor\Untitled.pwn(217) : warning 203: symbol is never used: "dcmd_login"
C:\Users\Tomas\Desktop\pawno\vytvor\Untitled.pwn(217) : warning 203: symbol is never used: "dcmd_register"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.

ked tam budem chcet vodicky tak ho ako nadefinujem ci co s tym ???

 

do onplayercommandtext

dcmd(login,5, cmdtext);
dcmd(register,8, cmdtext);

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