[Pomoc] virtual word i dialog

Započeo Ante_Dracar aka Lopa, Septembar 19, 2010, 18:37:56 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

dakle zanima me kako da napravim       virtual word    dakle imam 34 stare kuce + mojih 7 i sada neke od tih kuca imaju iste interjere ali sada ja udjem u svoju kucu normalno i kad kucam /exit izbacime ispred neke druge kuce,kako da napravim viertual word da to popravi...

dialog sam radio po ovome tutu     http://balkan-samp.com/forum/index.php?topic=2387.0

2 pomoc...

dakle ovo dialog za login / register pojiavi mi se 17 erroera,GF  gm koji sam ja prevodio...

1.ovo sam dodao u OnPlayerRequestClass(playerid, classid)
if (gPlayerAccount[playerid] != 0)
{
new loginstring[128];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname));
format(loginstring,sizeof(loginstring),"Dobro dosli, %s\nTaj nadimak je registriran.\nLogirajte se:",loginname);
ShowPlayerDialog(playerid,12346,DIALOG_STYLE_INPUT,"Login",loginstring,"Login","Izlaz");
SendClientMessage(playerid, COLOR_LIGHTRED, "Ako se ne logirate u roku od 30s bit cete izbaceni sa servera!");
}
else
{
SendClientMessage(playerid, COLOR_YELLOW2, "INFO: Registrirajte se i uredite svoje papire.");
new regstring[128];
new regname[64];
GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),"Dobro dosli, %s\nTaj nadimak nije registiran.\nRegistriraj se:",regname);
ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"Register",regstring,"Registriraj","Izlaz");
}
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);
}
else SpawnPlayer(playerid);
return false;



2 ovo sam dodao  u   cmdtext ...

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new sendername[MAX_PLAYER_NAME];
new string[128];
if(response)
{
if(dialogid == 12346 || dialogid == 12347)
{
   if(strlen(inputtext))
   {
new tmppass[64];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
Encrypt(tmppass);
OnPlayerLogin(playerid,tmppass);
}
else
{
new loginstring[128];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname));
format(loginstring,sizeof(loginstring),"KRIVA LOZINKA\nMolimo vas da unesete tocnu lozinku:",loginname);
ShowPlayerDialog(playerid,12347,DIALOG_STYLE_INPUT,"Login",loginstring,"Login","Izlaz");
gPlayerLogTries[playerid] += 1;
if(gPlayerLogTries[playerid] == 4) { Ban(playerid); }
}
}
if(dialogid == 12345)
{
   if(strlen(inputtext))
   {
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s.ini", sendername);
new File: hFile = fopen(string, io_read);
if (hFile)
{
SendClientMessage(playerid, COLOR_YELLOW, "Taj nadimak je vec zauzet, uzmite drugi nadimak.");
fclose(hFile);
return 1;
}
new tmppass[64];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
Encrypt(tmppass);
OnPlayerRegister(playerid,tmppass);
}
else
{
new regstring[128];
new regname[64];
GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),"Dobro dosli, %s\nTaj nadimak nije registriran.\nRegistriraj se:",regname);
ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"Register",regstring,"Registriraj","Izlaz");
}
}
}
else
{
Kick(playerid);
}
return 1;
}




dakle i evo errori...


C:\Users\Bill Gates\Desktop\ante deteskop\samp\0%\0%\gamemodes\gf.pwn(4909) : error 010: invalid function or declaration
C:\Users\Bill Gates\Desktop\ante deteskop\samp\0%\0%\gamemodes\gf.pwn(4913) : error 021: symbol already defined: "GetPlayerName"
C:\Users\Bill Gates\Desktop\ante deteskop\samp\0%\0%\gamemodes\gf.pwn(4918) : error 010: invalid function or declaration
C:\Users\Bill Gates\Desktop\ante deteskop\samp\0%\0%\gamemodes\gf.pwn(4923) : error 021: symbol already defined: "GetPlayerName"
C:\Users\Bill Gates\Desktop\ante deteskop\samp\0%\0%\gamemodes\gf.pwn(4930) : error 010: invalid function or declaration
C:\Users\Bill Gates\Desktop\ante deteskop\samp\0%\0%\gamemodes\gf.pwn(4932) : error 054: unmatched closing brace ("}")
C:\Users\Bill Gates\Desktop\ante deteskop\samp\0%\0%\gamemodes\gf.pwn(4933) : error 010: invalid function or declaration
C:\Users\Bill Gates\Desktop\ante deteskop\samp\0%\0%\gamemodes\gf.pwn(4934) : error 010: invalid function or declaration
C:\Users\Bill Gates\Desktop\ante deteskop\samp\0%\0%\gamemodes\gf.pwn(8788) : warning 217: loose indentation
C:\Users\Bill Gates\Desktop\ante deteskop\samp\0%\0%\gamemodes\gf.pwn(8788) : error 029: invalid expression, assumed zero
C:\Users\Bill Gates\Desktop\ante deteskop\samp\0%\0%\gamemodes\gf.pwn(8788) : error 004: function "OnDialogResponse" is not implemented
C:\Users\Bill Gates\Desktop\ante deteskop\samp\0%\0%\gamemodes\gf.pwn(8790) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Users\Bill Gates\Desktop\ante deteskop\samp\0%\0%\gamemodes\gf.pwn(8791) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Bill Gates\Desktop\ante deteskop\samp\0%\0%\gamemodes\gf.pwn(8792) : error 017: undefined symbol "response"
C:\Users\Bill Gates\Desktop\ante deteskop\samp\0%\0%\gamemodes\gf.pwn(8794) : error 017: undefined symbol "dialogid"
C:\Users\Bill Gates\Desktop\ante deteskop\samp\0%\0%\gamemodes\gf.pwn(8796) : error 017: undefined symbol "inputtext"
C:\Users\Bill Gates\Desktop\ante deteskop\samp\0%\0%\gamemodes\gf.pwn(8799) : error 017: undefined symbol "inputtext"
C:\Users\Bill Gates\Desktop\ante deteskop\samp\0%\0%\gamemodes\gf.pwn(8805) : warning 219: local variable "loginstring" shadows a variable at a preceding level
C:\Users\Bill Gates\Desktop\ante deteskop\samp\0%\0%\gamemodes\gf.pwn(8806) : warning 219: local variable "loginname" shadows a variable at a preceding level
C:\Users\Bill Gates\Desktop\ante deteskop\samp\0%\0%\gamemodes\gf.pwn(8814) : error 017: undefined symbol "dialogid"
C:\Users\Bill Gates\Desktop\ante deteskop\samp\0%\0%\gamemodes\gf.pwn(8816) : error 017: undefined symbol "inputtext"
C:\Users\Bill Gates\Desktop\ante deteskop\samp\0%\0%\gamemodes\gf.pwn(8828) : error 017: undefined symbol "inputtext"
C:\Users\Bill Gates\Desktop\ante deteskop\samp\0%\0%\gamemodes\gf.pwn(8834) : warning 219: local variable "regstring" shadows a variable at a preceding level
C:\Users\Bill Gates\Desktop\ante deteskop\samp\0%\0%\gamemodes\gf.pwn(8835) : warning 219: local variable "regname" shadows a variable at a preceding level
C:\Users\Bill Gates\Desktop\ante deteskop\samp\0%\0%\gamemodes\gf.pwn(8851) : warning 225: unreachable code
C:\Users\Bill Gates\Desktop\ante deteskop\samp\0%\0%\gamemodes\gf.pwn(8851) : warning 217: loose indentation
C:\Users\Bill Gates\Desktop\ante deteskop\samp\0%\0%\gamemodes\gf.pwn(27063) : warning 203: symbol is never used: "loginname"
C:\Users\Bill Gates\Desktop\ante deteskop\samp\0%\0%\gamemodes\gf.pwn(27063) : warning 203: symbol is never used: "loginstring"
C:\Users\Bill Gates\Desktop\ante deteskop\samp\0%\0%\gamemodes\gf.pwn(27063) : warning 203: symbol is never used: "regname"
C:\Users\Bill Gates\Desktop\ante deteskop\samp\0%\0%\gamemodes\gf.pwn(27063) : warning 203: symbol is never used: "regstring"
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


17 Errors.








plizz pomozite za oba 2 pomoci iako je hitnija ona 1 sa wirtual wordom

Poslednja Izmena: Septembar 19, 2010, 18:39:15 POSLE PODNE od Ante_Dracar aka Lopa

haha kakav virtual world... ako imas /ulaz i /izlaz ... ulazak u interior ( interiore potrazi po googlu) onda imas i izlazak iz kuce /izlaz... kad si spremio koordinate ispred kuce ubacis te koordinate  i stavis interior/vw 0 (nesjecam se tocno sta je nisam dugo skripto)