[Pomoc]OnPlayerRequestClass

Započeo FireMan, Maj 20, 2011, 16:03:48 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:GF
Detaljan opis problema:Ubacio sam novi public OnPlayerRequestClass(playerid, classid) i sad kad umrem dođe mi login
Dio skripte:public OnPlayerRequestClass(playerid, classid)
{
PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pModel] = Peds[classid][0];
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);
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):

Probao sam ovako public OnPlayerRequestClass(playerid, classid)
{
PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pModel] = Peds[classid][0];
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
{
if(gPlayerAccount[i] == 1 && gPlayerLogged[i] == 1)
SetPlayerTeamFromClass(playerid,classid);
SetupPlayerForClassSelection(playerid);
Ali opet nece

C:\Users\Sa-Mp\Desktop\SERVER\gamemodes\gf.pwn(4330) : warning 217: loose indentation
C:\Users\Sa-Mp\Desktop\SERVER\gamemodes\gf.pwn(4336) : error 010: invalid function or declaration
C:\Users\Sa-Mp\Desktop\SERVER\gamemodes\gf.pwn(4338) : error 010: invalid function or declaration
C:\Users\Sa-Mp\Desktop\SERVER\gamemodes\gf.pwn(14620) : warning 217: loose indentation
C:\Users\Sa-Mp\Desktop\SERVER\gamemodes\gf.pwn(14660) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
Poslednja Izmena: Maj 20, 2011, 16:17:28 POSLE PODNE od FireMan