Tessék,
new bool:Spawn = false;
public OnPlayerSpawn ( playerid )
{
if ( Spawn == false )
{
ShowPlayerDialog ( playeird, DIALOG_ID, DIALOG_STYLE, \"Szöveg\", \"Szöveg\", \"Tovább\" );
Spawn = true;
}
return 1;
}
Ez hibás.
Tesk:
public OnPlayerSpawn(playerid)
{
if (GetPVarInt(playerid,\"FirstSpawn\") == 0)
{
ShowPlayerDialog(playerid,DIALOG_ID,DIALOG_STYLE,\"Fejléc\",\"Szöveg\",\"Gomb1\",\"Gomb2\");
SetPVarInt(playerid,\"FirstSpawn\",1)
}
return 1;
}