public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1)
{
if(listitem == 0)
{
SetPlayerSkin(playerid, 112);
SetPlayerPos(playerid,1918.3838,-2255.6760,13.5469);
GivePlayerWeapon(playerid,352,500);
GivePlayerWeapon(playerid,355,500);
GivePlayerWeapon(playerid,358,500);
}
if(listitem == 1)
{
SetPlayerSkin(playerid, 1);
SetPlayerPos(playerid,1989.7607,-2604.9336,18.6034);
GivePlayerWeapon(playerid,352,500);
GivePlayerWeapon(playerid,355,500);
GivePlayerWeapon(playerid,358,500);
}
if(listitem == 2)
{
Kick(playerid);
}
}
return 1;
}
........
if(listitem == 2)
{
Kick(playerid);
}
}
}
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1)
{
if(response)
{
if(listitem == 0)
{
SetPlayerSkin(playerid, 112);
SetPlayerPos(playerid,1918.3838,-2255.6760,13.5469);
GivePlayerWeapon(playerid,352,500);
GivePlayerWeapon(playerid,355,500);
GivePlayerWeapon(playerid,358,500);
}
if(listitem == 1)
{
SetPlayerSkin(playerid, 1);
SetPlayerPos(playerid,1989.7607,-2604.9336,18.6034);
GivePlayerWeapon(playerid,352,500);
GivePlayerWeapon(playerid,355,500);
GivePlayerWeapon(playerid,358,500);
}
if(listitem == 2)
{
Kick(playerid);
}
}
return 1;
}
return 1;
}
(294) : error 029: invalid expression, assumed zero (294) : error 004: function "OnPlayerClickPlayer" is not implemented (298) : error 030: compound statement not closed at the end of file (started at line 266) And those errors seem to be on public OnPlayerClickPlayer(playerid, clickedplayerid, source) // will probally because of a missing brace '}' and also 298 the end of the script
(292) : warning 217: loose indentation
|
thanks for your quick reply i will see if it works and egt back to you
Код:
(292) : warning 217: loose indentation |
#pragma tabsize 0