Quote:
Originally Posted by Misiur
Show lines 420-440
You don't have ycmd_r function
912 you are missing reason variable creation (something like "new reason[49];" )
Show lines 1600-1660
|
I have error on public OnPlayerSpawn:
pawn Код:
public OnPlayerSpawn(playerid)
{
if (P_Data[playerid][pMember] > 0)
{
switch(P_Data[playerid][pMember])
{
case 1:
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerFacingAngle(playerid, 270.1425);
SetPlayerSkin(playerid, P_Data[playerid][pOrgskin]);
}
case 2:
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerFacingAngle(playerid, 270.1425);
SetPlayerSkin(playerid, P_Data[playerid][pOrgskin])
}
}
}
else if (P_Data[playerid][pLeader] > 0)
{
switch(P_Data[playerid][pLeader])
{
case 1:
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerFacingAngle(playerid, 270.1425);
SetPlayerSkin(playerid, P_Data[playerid][pOrgskin]);
}
case 2:
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerFacingAngle(playerid, 270.1425);
SetPlayerSkin(playerid, P_Data[playerid][pOrgskin]);
}
}
if(GetPVarInt(playerid, "Join") == 1)
{
GivePlayerMoney(playerid, P_Data[playerid][pMoney]);
SetPlayerScore(playerid, P_Data[playerid][pScore]);
SetPVarInt(playerid, "Join", 0);
if(P_Data[playerid][pWarn] >= 5)
{
Kick(playerid);
SCM(playerid, C_WHITE, "Imaљ 5 warnova.");
return 1;
}
}
}
return 1;
}
And here is lines 1600 - 1660
pawn Код:
YCMD:rsupport(playerid, params[], help)
{
#pragma unused help
#pragma unused params
if(!IsPlayerAdmin(playerid)) return SCM(playerid, COLOR_RED, "You need to be RCON admin to use this command!");
ShowPlayerDialog(playerid,RCON_DIALOG,DIALOG_STYLE_LIST,"RCON support","Change server name\nChange Map name\nChange Web adress\nUnlock server\nLock server\nRestart\nChange pass\nTurn off","Choose","Exit");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case DIALOG_ORG_INVITE:
{
if (response)
{
switch(P_Data[playerid][pMember])
{
case 1:
{
SetPlayerSkin(playerid, 287);
SendClientMessage(playerid, C_WHITE, "Postali ste član "CRED"Američke vojske!");
}
}
}
else
{
P_Data[playerid][pMember] = 0;
P_Data[playerid][pRank] = 0;
SendClientMessage(playerid, C_WHITE, "Odbili ste poziv za članstvo u Američkoj vojsci");
}
case DIALOG_REGISTER:
{
if(response)
{
new
string[179],pFile[35];
format(pFile, 35, Player_File, GetName(playerid));
new
INI:UserFile = INI_Open(pFile);
INI_WriteInt(UserFile, "Password", udb_hash(inputtext));
INI_WriteInt(UserFile, "Admin", 0);
INI_WriteInt(UserFile, "Money", START_MONEY);
INI_WriteInt(UserFile, "Score", 0);
INI_WriteInt(UserFile, "Skin", SKIN_ID);
INI_WriteInt(UserFile, "Warn", 0);
INI_WriteInt(UserFile, "VIP", 0);
INI_Close(UserFile);
SetPVarInt(playerid, "Registered", 1);
SetPVarInt(playerid, "Logged", 1);
SpawnPlayer(playerid);
format(string, 125, ""COL_YELLOW"Ime: %s | Password: %s uspjeљno registrovano", GetName(playerid), inputtext);
SCM(playerid, 0x46BA29FF, string);
SpawnPlayer(playerid);
}
else Kick(playerid);
}