21.04.2010, 14:56
Okay, I did...
This is now my script (somethings changed):
It is not working, does anybody else know why?
This is now my script (somethings changed):
pawn Код:
#include <a_samp>
#include <dudb>
#pragma unused ret_memcpy
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#endif
public OnGameModeInit()
{
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerSpawn(playerid)
{
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST, "Choose your thing!","First \t $1", "Select", "Quit");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256], idx;
cmd = strtok(cmdtext, idx);
if(strcmp("/thing", cmd, true) == 0)
{
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST, "Choose your thing!", "First \t $1", "Join", "Quit");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 0)
{
if(response)
{
SendClientMessage(playerid, groen, "Yes"); // I don't get this message.. :S
switch(listitem)
{
case 0:
{
SendClientMessage(playerid, lichtgroen, "Now you made it! Congratulations!");
}
case 1:
{
SetPlayerPos(playerid, 12, 12, 12);
SetPlayerFacingAngle(playerid, 12);
SendClientMessage(playerid, groen, "Lol, where are you?");
}
}
}
else if(!response) /* also won't work without 'if(!response)' */
{
SendClientMessage(playerid, rood, "You quited the server");
Kick(playerid);
}
}
return 1;
}