Pomoc oko register...

Započeo Mute, Decembar 10, 2009, 02:34:32 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Zelim napravit server od 0 i vec sam zapeo na registeru :D jer sam dosada samo editovo ostale modove nikad nisam ubacivo register a kamoli da sam ga radio a nigdje nam tutova za cijeli register/login....


pa evo hebe me sendername

C:\DOCUME~1\SKOVAC~1\Desktop\Marko\POTPUN~1\GAMEMO~1\FCRP.pwn(141) : error 017: undefined symbol "sendername"
C:\DOCUME~1\SKOVAC~1\Desktop\Marko\POTPUN~1\GAMEMO~1\FCRP.pwn(141) : error 017: undefined symbol "sendername"
C:\DOCUME~1\SKOVAC~1\Desktop\Marko\POTPUN~1\GAMEMO~1\FCRP.pwn(141) : error 029: invalid expression, assumed zero
C:\DOCUME~1\SKOVAC~1\Desktop\Marko\POTPUN~1\GAMEMO~1\FCRP.pwn(141) : 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.


a evo i taj dio skripte

/*REGISTER*/
if (strcmp("/register", cmdtext, true) ==0 )
{
    if(IsPlayerConnected(playerid))
    {
        if(gPlayerLogged[playerid] == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "toXic: Vec ste prijavljeni.");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "users/%s.ini", sendername);
new File: hFile = fopen(string, io_read);
if (hFile)
{
SendClientMessage(playerid, COLOR_YELLOW, "To se ime vec koristi, molimo izaberite drugo.");
fclose(hFile);
return 1;
}
        new tmppass[64];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "Koristite: /register [sifra]");
return 1;
}
strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
//Encrypt(tmppass);
OnPlayerRegister(playerid,tmppass);
}
return 1;
}

ako vec radis server radi ga za samp server 0.3 bolje ce ti bit, a za login i registraciju sam napravio tut, http://balkan-samp.com/forum/index.php?topic=2371.0

Koristi ako zelis ispocetka ono prvo, a ne ovo sto sam objasnjavao...
Mnogi me znaju, a mnogi misle da znaju.

Naopravio ti je stvarno lijep tut...ako ne razumijes taj tut onda nisi za scriptanje... ;D

r4z0r

Fale ti definei sendername ..
Imas tutorial pa izvoli pogledat .

C:\Documents and Settings\Skovacin PSD\Desktop\Marko\Potpuno novi server\gamemodes\FCRP.pwn(66) : warning 217: loose indentation
C:\Documents and Settings\Skovacin PSD\Desktop\Marko\Potpuno novi server\gamemodes\FCRP.pwn(69) : warning 215: expression has no effect
C:\Documents and Settings\Skovacin PSD\Desktop\Marko\Potpuno novi server\gamemodes\FCRP.pwn(69) : error 001: expected token: ";", but found "["
C:\Documents and Settings\Skovacin PSD\Desktop\Marko\Potpuno novi server\gamemodes\FCRP.pwn(69) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Skovacin PSD\Desktop\Marko\Potpuno novi server\gamemodes\FCRP.pwn(69) : warning 215: expression has no effect
C:\Documents and Settings\Skovacin PSD\Desktop\Marko\Potpuno novi server\gamemodes\FCRP.pwn(69) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Skovacin PSD\Desktop\Marko\Potpuno novi server\gamemodes\FCRP.pwn(69) : 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.



a evo i taj dio di mi javlja gresku, neznam di je greska samo sam ubacio po tutorialu i javlja mi gresku...
}
SetPlayerCameraPos(playerid, 1890.1014,-1194.7969,25.8091);
SetPlayerCameraLookAt(playerid, 1933.4393,-1196.2479,18.8163);
//PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pModel] = Peds[classid][0];
SetPlayerTeamFromClass(playerid,classid);
}


Citat: Mute poslato Decembar 10, 2009, 19:34:11 POSLE PODNE
C:\Documents and Settings\Skovacin PSD\Desktop\Marko\Potpuno novi server\gamemodes\FCRP.pwn(66) : warning 217: loose indentation
C:\Documents and Settings\Skovacin PSD\Desktop\Marko\Potpuno novi server\gamemodes\FCRP.pwn(69) : warning 215: expression has no effect
C:\Documents and Settings\Skovacin PSD\Desktop\Marko\Potpuno novi server\gamemodes\FCRP.pwn(69) : error 001: expected token: ";", but found "["
C:\Documents and Settings\Skovacin PSD\Desktop\Marko\Potpuno novi server\gamemodes\FCRP.pwn(69) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Skovacin PSD\Desktop\Marko\Potpuno novi server\gamemodes\FCRP.pwn(69) : warning 215: expression has no effect
C:\Documents and Settings\Skovacin PSD\Desktop\Marko\Potpuno novi server\gamemodes\FCRP.pwn(69) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Skovacin PSD\Desktop\Marko\Potpuno novi server\gamemodes\FCRP.pwn(69) : 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.



a evo i taj dio di mi javlja gresku, neznam di je greska samo sam ubacio po tutorialu i javlja mi gresku...
} //umjesto ove tu moras staviti ovakvu zagradu  {
SetPlayerCameraPos(playerid, 1890.1014,-1194.7969,25.8091);
SetPlayerCameraLookAt(playerid, 1933.4393,-1196.2479,18.8163);
//PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pModel] = Peds[classid][0];
SetPlayerTeamFromClass(playerid,classid);
}



Ako ja dobro vidim a mozda i nije u tome problem tebi su obadvije zagrade zatvorene a nijedna otvorena evo napisao sam ti pored zagrada...
Poslednja Izmena: Decembar 10, 2009, 19:38:56 POSLE PODNE od [CC]Chrisâ„¢

C:\DOCUME~1\SKOVAC~1\Desktop\Marko\POTPUN~1\GAMEMO~1\FCRP.pwn(57) : error 017: undefined symbol "Encrypt"
C:\DOCUME~1\SKOVAC~1\Desktop\Marko\POTPUN~1\GAMEMO~1\FCRP.pwn(58) : error 017: undefined symbol "OnPlayerLogin"
C:\DOCUME~1\SKOVAC~1\Desktop\Marko\POTPUN~1\GAMEMO~1\FCRP.pwn(67) : error 017: undefined symbol "gPlayerLogTries"
C:\DOCUME~1\SKOVAC~1\Desktop\Marko\POTPUN~1\GAMEMO~1\FCRP.pwn(67) : warning 215: expression has no effect
C:\DOCUME~1\SKOVAC~1\Desktop\Marko\POTPUN~1\GAMEMO~1\FCRP.pwn(67) : error 001: expected token: ";", but found "]"
C:\DOCUME~1\SKOVAC~1\Desktop\Marko\POTPUN~1\GAMEMO~1\FCRP.pwn(67) : error 029: invalid expression, assumed zero
C:\DOCUME~1\SKOVAC~1\Desktop\Marko\POTPUN~1\GAMEMO~1\FCRP.pwn(67) : fatal error 107: too many error messages on one line

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


6 Errors.

Ono sam rijesio ali mi je sada ovo doslo :D xD

GRESKA 57 i 58
Encrypt(tmppass);
OnPlayerLogin(playerid,tmppass);
}

GRESKA 67
gPlayerLogTries[playerid] += 1;
if(gPlayerLogTries[playerid] == 4) { Ban(playerid); }
}
}


Mogu uzet GF mode pa da se prestanem zezat s tim login/registerom ali zelim napravit svoj mode od 0... Al nikad nisam radio s loginom pa neznam....
a jos uvijek sam pocetnik sto se scriptanja tice :(

Ti si pocetnik, znaci pretpostavimo da neznas nesto previse o skriptanju... i ti bi zelio odma napraviti vlastiiti gamemode? Bez komentara

Kako ucim scriptat tako i radim svoj mode, do sada sam radio s LARP mode al mi se neda vise :D, Odnosno zelim pocet od nule i kako ucim srciptat tako i radim svoj mode... A ne samo preradit tudji mode... Ja imam preradjeni LARP mode i mogo bih otvorit server, al mi je glupo jer svi imaju taj mode i to nije moja scritpa... I zato zelim pocet od 0...


Btw: Ako hoces pomoc pomogni, ako ne.... Sta da ti kazem :D ?

r4z0r

Brate pazi pocetnik si i apsolutno NEMA sanse da napravis svoj gamemod zato sto neznas sta znaci pola od tih funkcija . Prvo probaj napravit par svojih manjih codova i par filterscripti pa vidi kako ce to proc i skuzi sta znace pojedine komande pa onda probaj svoj gamemod koji nije edit nego je pisan od prvog linea ..

O.K. , vec imam par svojih vlastitih scripti koje sam sam napravio bez ikakvog tuta(samo sam pogledo neke funkcije na samp wiki...)


ae metnite ovdje lock
Poslednja Izmena: Decembar 10, 2009, 22:05:05 POSLE PODNE od Mute

pa stavi te svoje scripte na forum da ih vidimo...